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)>
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
.