Module ext_php_rs::exception
source · Expand description
Types and functions used for throwing exceptions from Rust to PHP.
Structs§
- Represents a PHP exception which can be thrown using the
throw()
function. Primarily used to return from aResult<T, PhpException>
which can immediately be thrown by theext-php-rs
macro API.
Functions§
- Throws an exception with a given message. See
ClassEntry
for some built-in exception types. - Throws an exception object.
- Throws an exception with a given message and status code. See
ClassEntry
for some built-in exception types.
Type Aliases§
- Result type with the error variant as a
PhpException
.