pub struct CaughtException { /* private fields */ }
Expand description
An Exception
rescued with sys::mrb_protect
.
CaughtException
is re-raiseable because it implements RubyException
.
Implementations§
Source§impl CaughtException
impl CaughtException
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Incrementally construct a CaughtException
.
Trait Implementations§
Source§impl Clone for CaughtException
impl Clone for CaughtException
Source§fn clone(&self) -> CaughtException
fn clone(&self) -> CaughtException
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CaughtException
impl Debug for CaughtException
Source§impl Default for CaughtException
impl Default for CaughtException
Source§fn default() -> CaughtException
fn default() -> CaughtException
Returns the “default value” for a type. Read more
Source§impl Display for CaughtException
impl Display for CaughtException
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 From<CaughtException> for Box<dyn RubyException>
impl From<CaughtException> for Box<dyn RubyException>
Source§fn from(exc: CaughtException) -> Self
fn from(exc: CaughtException) -> Self
Converts to this type from the input type.
Source§impl From<CaughtException> for Error
impl From<CaughtException> for Error
Source§fn from(exc: CaughtException) -> Self
fn from(exc: CaughtException) -> Self
Converts to this type from the input type.
Source§impl RubyException for CaughtException
impl RubyException for CaughtException
Source§fn 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.Source§fn 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 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