pub struct CaughtException { /* private fields */ }
Expand description
An Exception
rescued with sys::mrb_protect
.
CaughtException
is re-raiseable because it implements RubyException
.
Implementations
sourceimpl CaughtException
impl CaughtException
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Incrementally construct a CaughtException
.
Trait Implementations
sourceimpl Clone for CaughtException
impl Clone for CaughtException
sourcefn clone(&self) -> CaughtException
fn clone(&self) -> CaughtException
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CaughtException
impl Debug for CaughtException
sourceimpl Default for CaughtException
impl Default for CaughtException
sourcefn default() -> CaughtException
fn default() -> CaughtException
Returns the “default value” for a type. Read more
sourceimpl Display for CaughtException
impl Display for CaughtException
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>
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
use the Display impl or to_string()
sourceimpl From<CaughtException> for Box<dyn RubyException>
impl From<CaughtException> for Box<dyn RubyException>
sourcefn from(exc: CaughtException) -> Self
fn from(exc: CaughtException) -> Self
Converts to this type from the input type.
sourceimpl From<CaughtException> for Error
impl From<CaughtException> for Error
sourcefn from(exc: CaughtException) -> Self
fn from(exc: CaughtException) -> Self
Converts to this type from the input type.
sourceimpl RubyException for CaughtException
impl RubyException for CaughtException
sourcefn vm_backtrace(&self, interp: &mut Artichoke) -> Option<Vec<Vec<u8>>>
fn vm_backtrace(&self, interp: &mut Artichoke) -> Option<Vec<Vec<u8>>>
Optional backtrace specified by a Vec
of frames.
sourcefn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>
fn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>
Return a raise-able sys::mrb_value
.
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more