Struct mri_sys::helpers::CaughtException
source · [−]pub struct CaughtException {
pub exception_object: Value,
pub exception_class_name: String,
pub message: String,
}
Expand description
Wraps a Ruby exception Value
and exposes its values usable in Rust.
Fields
exception_object: Value
exception_class_name: String
message: String
Trait Implementations
sourceimpl Debug for CaughtException
impl Debug for CaughtException
sourceimpl Display for CaughtException
impl Display for CaughtException
Formats the exception like <ClassName>: <message>
sourceimpl Error for CaughtException
impl Error for CaughtException
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<CaughtException> for CaughtException
impl PartialEq<CaughtException> for CaughtException
Compare the class and message of an exception against another.
impl Eq for CaughtException
Auto Trait Implementations
impl RefUnwindSafe for CaughtException
impl Send for CaughtException
impl Sync for CaughtException
impl Unpin for CaughtException
impl UnwindSafe for CaughtException
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more