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: StringTrait Implementations§
Source§impl Debug for CaughtException
impl Debug for CaughtException
Source§impl Display for CaughtException
Formats the exception like <ClassName>: <message>
impl Display for CaughtException
Formats the exception like <ClassName>: <message>
Source§impl Error for CaughtException
impl Error for CaughtException
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for CaughtException
Compare the class and message of an exception against another.
impl PartialEq for CaughtException
Compare the class and message of an exception against another.
impl Eq for CaughtException
Auto Trait Implementations§
impl Freeze for CaughtException
impl RefUnwindSafe for CaughtException
impl Send for CaughtException
impl Sync for CaughtException
impl Unpin for CaughtException
impl UnwindSafe for CaughtException
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