Expand description
The errors for crate and php.
Structs
- Throw when actual arguments count is not greater than expect in calling functions.
- Class not found, get the class by name failed, etc.
- Guarder for preventing the thrown exception from being overwritten.
- Expect type is not the actual type.
- Failed to initialize object.
- Failed when the object isn’t implement PHP
Throwable
. - Wrapper of Throwable object.
Enums
- Crate level Error, which also can become an exception in php.
Traits
- PHP Throwable, can cause throwing an exception when setting to crate::values::ZVal.
Functions
- Predefined class
ArgumentCountError
(>= PHP 7.1.0). - Predefined class
ArithmeticError
. - Predefined class
DivisionByZeroError
. - Predefined class
Error
. - Predefined class
ErrorException
. - Predefined class
Exception
. - Equivalent to
Ok::<_, phper::Error>(value)
. - Predefined class
ParseError
. - Safety
- Predefined interface
Throwable
. - Predefined class
TypeError
.
Type Aliases
- Type of Result<T, crate::Error>.