pub trait Throwable: Error {
// Required method
fn get_class(&self) -> &ClassEntry;
// Provided methods
fn get_code(&self) -> Option<i64> { ... }
fn get_message(&self) -> Option<String> { ... }
fn to_object(&mut self) -> Result<ZObject, Box<dyn Throwable>> { ... }
}Expand description
PHP Throwable, can cause throwing an exception when setting to crate::values::ZVal.
Required Methods§
Sourcefn get_class(&self) -> &ClassEntry
fn get_class(&self) -> &ClassEntry
Gets the class reference, implemented PHP Throwable.
Provided Methods§
Sourcefn get_message(&self) -> Option<String>
fn get_message(&self) -> Option<String>
Gets the message.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".