pub enum NativeError {
Throw {
class: String,
message: String,
},
Rethrow(Value),
Silent,
}Expand description
How a native function fails in PHP.
Variants§
Throw
Throws new $class($message); \Exception when the class is not declared.
Rethrow(Value)
Rethrows a PHP exception object (a Value::Opaque from crate::call_catching).
Silent
PHP is unwinding (a bailout or exit()); throw nothing.
Implementations§
Source§impl NativeError
impl NativeError
Trait Implementations§
Source§impl Clone for NativeError
impl Clone for NativeError
Source§impl Debug for NativeError
impl Debug for NativeError
Source§impl PartialEq for NativeError
impl PartialEq for NativeError
impl StructuralPartialEq for NativeError
Auto Trait Implementations§
impl !RefUnwindSafe for NativeError
impl !Send for NativeError
impl !Sync for NativeError
impl !UnwindSafe for NativeError
impl Forget for NativeError
impl Freeze for NativeError
impl Move for NativeError
impl Unpin for NativeError
impl UnsafeUnpin for NativeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more