Expand description
The errors for crate and php.
Structs§
- Argument
Count Error - Throw when actual arguments count is not greater than expect in calling functions.
- Class
NotFound Error - Class not found, get the class by name failed, etc.
- Exception
Guard - Guarder for preventing the thrown exception from being overwritten.
- Expect
Type Error - Expect type is not the actual type.
- Initialize
Object Error - Failed to initialize object.
- NotImplement
Throwable Error - Failed when the object isn’t implement PHP
Throwable. - Throw
Object - Wrapper of Throwable object.
Enums§
- Error
- Crate level Error, which also can become an exception in php.
Traits§
- Throwable
- PHP Throwable, can cause throwing an exception when setting to crate::values::ZVal.
Functions§
- argument_
count_ error_ class Not ( phper_major_version=7andphper_minor_version=0) - Predefined class
ArgumentCountError(>= PHP 7.1.0). - arithmetic_
error_ class - Predefined class
ArithmeticError. - division_
by_ zero_ error - Predefined class
DivisionByZeroError. - error_
class - Predefined class
Error. - error_
exception_ class - Predefined class
ErrorException. - exception_
class - Predefined class
Exception. - ok
- Equivalent to
Ok::<_, phper::Error>(value). - parse_
error_ class - Predefined class
ParseError. - throw⚠
- Safety
- throwable_
class - Predefined interface
Throwable. - type_
error_ class - Predefined class
TypeError.
Type Aliases§
- Result
- Type of Result<T, crate::Error>.