Expand description
Types and functions used for throwing exceptions from Rust to PHP.
Structs§
- PhpException
- 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-rsmacro API.
Functions§
- throw
- Throws an exception with a given message. See
ClassEntryfor some built-in exception types. - throw_
object - Throws an exception object.
- throw_
with_ code - Throws an exception with a given message and status code. See
ClassEntryfor some built-in exception types.
Type Aliases§
- PhpResult
- Result type with the error variant as a
PhpException.