Trait artichoke_backend::error::RubyException
source · [−]pub trait RubyException: Error + 'static {
fn message(&self) -> Cow<'_, [u8]>;
fn name(&self) -> Cow<'_, str>;
fn vm_backtrace(&self, interp: &mut Artichoke) -> Option<Vec<Vec<u8>>>;
fn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>;
}
Expand description
Polymorphic exception type that corresponds to Ruby’s Exception
.
All types that implement RubyException
can be raised with
error::raise
. Rust code can re-raise a trait object to
propagate exceptions from native code back into the interpreter.
Required Methods
Message of the Exception
.
This value is a byte slice since Ruby String
s are equivalent to
Vec<u8>
.
Optional backtrace specified by a Vec
of frames.
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
.
Trait Implementations
sourceimpl Error for Box<dyn RubyException>
impl Error for Box<dyn RubyException>
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<ArenaSavepointError> for Box<dyn RubyException>
impl From<ArenaSavepointError> for Box<dyn RubyException>
sourcefn from(exception: ArenaSavepointError) -> Box<dyn RubyException>
fn from(exception: ArenaSavepointError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ArgCountError> for Box<dyn RubyException>
impl From<ArgCountError> for Box<dyn RubyException>
sourcefn from(exception: ArgCountError) -> Box<dyn RubyException>
fn from(exception: ArgCountError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ArgumentError> for Box<dyn RubyException>
impl From<ArgumentError> for Box<dyn RubyException>
sourcefn from(exception: ArgumentError) -> Box<dyn RubyException>
fn from(exception: ArgumentError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ArenaSavepointError, Global>> for Box<dyn RubyException>
impl From<Box<ArenaSavepointError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ArenaSavepointError>) -> Box<dyn RubyException>
fn from(exception: Box<ArenaSavepointError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ArgCountError, Global>> for Box<dyn RubyException>
impl From<Box<ArgCountError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ArgCountError>) -> Box<dyn RubyException>
fn from(exception: Box<ArgCountError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ArgumentError, Global>> for Box<dyn RubyException>
impl From<Box<ArgumentError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ArgumentError>) -> Box<dyn RubyException>
fn from(exception: Box<ArgumentError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<BoxIntoRubyError, Global>> for Box<dyn RubyException>
impl From<Box<BoxIntoRubyError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<BoxIntoRubyError>) -> Box<dyn RubyException>
fn from(exception: Box<BoxIntoRubyError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ConstantNameError, Global>> for Box<dyn RubyException>
impl From<Box<ConstantNameError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ConstantNameError>) -> Box<dyn RubyException>
fn from(exception: Box<ConstantNameError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ConvertBytesError, Global>> for Box<dyn RubyException>
impl From<Box<ConvertBytesError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ConvertBytesError>) -> Box<dyn RubyException>
fn from(exception: Box<ConvertBytesError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<DomainError, Global>> for Box<dyn RubyException>
impl From<Box<DomainError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<DomainError>) -> Box<dyn RubyException>
fn from(exception: Box<DomainError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<EncodingError, Global>> for Box<dyn RubyException>
impl From<Box<EncodingError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<EncodingError>) -> Box<dyn RubyException>
fn from(exception: Box<EncodingError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<FiberError, Global>> for Box<dyn RubyException>
impl From<Box<FiberError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<FiberError>) -> Box<dyn RubyException>
fn from(exception: Box<FiberError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<FloatDomainError, Global>> for Box<dyn RubyException>
impl From<Box<FloatDomainError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<FloatDomainError>) -> Box<dyn RubyException>
fn from(exception: Box<FloatDomainError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<FrozenError, Global>> for Box<dyn RubyException>
impl From<Box<FrozenError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<FrozenError>) -> Box<dyn RubyException>
fn from(exception: Box<FrozenError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<IncrementLinenoError, Global>> for Box<dyn RubyException>
impl From<Box<IncrementLinenoError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<IncrementLinenoError>) -> Box<dyn RubyException>
fn from(exception: Box<IncrementLinenoError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<IndexError, Global>> for Box<dyn RubyException>
impl From<Box<IndexError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<IndexError>) -> Box<dyn RubyException>
fn from(exception: Box<IndexError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<InterpreterAllocError, Global>> for Box<dyn RubyException>
impl From<Box<InterpreterAllocError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<InterpreterAllocError>) -> Box<dyn RubyException>
fn from(exception: Box<InterpreterAllocError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<InterpreterExtractError, Global>> for Box<dyn RubyException>
impl From<Box<InterpreterExtractError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<InterpreterExtractError>) -> Box<dyn RubyException>
fn from(exception: Box<InterpreterExtractError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<IoError, Global>> for Box<dyn RubyException>
impl From<Box<IoError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<IoError>) -> Box<dyn RubyException>
fn from(exception: Box<IoError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<LocalJumpError, Global>> for Box<dyn RubyException>
impl From<Box<LocalJumpError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<LocalJumpError>) -> Box<dyn RubyException>
fn from(exception: Box<LocalJumpError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<NoBlockGiven, Global>> for Box<dyn RubyException>
impl From<Box<NoBlockGiven, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<NoBlockGiven>) -> Box<dyn RubyException>
fn from(exception: Box<NoBlockGiven>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<NoMemoryError, Global>> for Box<dyn RubyException>
impl From<Box<NoMemoryError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<NoMemoryError>) -> Box<dyn RubyException>
fn from(exception: Box<NoMemoryError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<NoMethodError, Global>> for Box<dyn RubyException>
impl From<Box<NoMethodError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<NoMethodError>) -> Box<dyn RubyException>
fn from(exception: Box<NoMethodError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<NotDefinedError, Global>> for Box<dyn RubyException>
impl From<Box<NotDefinedError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<NotDefinedError>) -> Box<dyn RubyException>
fn from(exception: Box<NotDefinedError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<NotImplementedError, Global>> for Box<dyn RubyException>
impl From<Box<NotImplementedError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<NotImplementedError>) -> Box<dyn RubyException>
fn from(exception: Box<NotImplementedError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<RangeError, Global>> for Box<dyn RubyException>
impl From<Box<RangeError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<RangeError>) -> Box<dyn RubyException>
fn from(exception: Box<RangeError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<RegexpError, Global>> for Box<dyn RubyException>
impl From<Box<RegexpError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<RegexpError>) -> Box<dyn RubyException>
fn from(exception: Box<RegexpError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<RuntimeError, Global>> for Box<dyn RubyException>
impl From<Box<RuntimeError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<RuntimeError>) -> Box<dyn RubyException>
fn from(exception: Box<RuntimeError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ScriptError, Global>> for Box<dyn RubyException>
impl From<Box<ScriptError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ScriptError>) -> Box<dyn RubyException>
fn from(exception: Box<ScriptError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SecurityError, Global>> for Box<dyn RubyException>
impl From<Box<SecurityError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SecurityError>) -> Box<dyn RubyException>
fn from(exception: Box<SecurityError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SignalException, Global>> for Box<dyn RubyException>
impl From<Box<SignalException, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SignalException>) -> Box<dyn RubyException>
fn from(exception: Box<SignalException>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<StandardError, Global>> for Box<dyn RubyException>
impl From<Box<StandardError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<StandardError>) -> Box<dyn RubyException>
fn from(exception: Box<StandardError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<StopIteration, Global>> for Box<dyn RubyException>
impl From<Box<StopIteration, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<StopIteration>) -> Box<dyn RubyException>
fn from(exception: Box<StopIteration>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SymbolOverflowError, Global>> for Box<dyn RubyException>
impl From<Box<SymbolOverflowError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SymbolOverflowError>) -> Box<dyn RubyException>
fn from(exception: Box<SymbolOverflowError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SyntaxError, Global>> for Box<dyn RubyException>
impl From<Box<SyntaxError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SyntaxError>) -> Box<dyn RubyException>
fn from(exception: Box<SyntaxError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SystemCallError, Global>> for Box<dyn RubyException>
impl From<Box<SystemCallError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SystemCallError>) -> Box<dyn RubyException>
fn from(exception: Box<SystemCallError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SystemExit, Global>> for Box<dyn RubyException>
impl From<Box<SystemExit, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SystemExit>) -> Box<dyn RubyException>
fn from(exception: Box<SystemExit>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<SystemStackError, Global>> for Box<dyn RubyException>
impl From<Box<SystemStackError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<SystemStackError>) -> Box<dyn RubyException>
fn from(exception: Box<SystemStackError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ThreadError, Global>> for Box<dyn RubyException>
impl From<Box<ThreadError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ThreadError>) -> Box<dyn RubyException>
fn from(exception: Box<ThreadError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<UnboxRubyError, Global>> for Box<dyn RubyException>
impl From<Box<UnboxRubyError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<UnboxRubyError>) -> Box<dyn RubyException>
fn from(exception: Box<UnboxRubyError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<UncaughtThrowError, Global>> for Box<dyn RubyException>
impl From<Box<UncaughtThrowError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<UncaughtThrowError>) -> Box<dyn RubyException>
fn from(exception: Box<UncaughtThrowError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<WriteError, Global>> for Box<dyn RubyException>
impl From<Box<WriteError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<WriteError>) -> Box<dyn RubyException>
fn from(exception: Box<WriteError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Box<ZeroDivisionError, Global>> for Box<dyn RubyException>
impl From<Box<ZeroDivisionError, Global>> for Box<dyn RubyException>
sourcefn from(exception: Box<ZeroDivisionError>) -> Box<dyn RubyException>
fn from(exception: Box<ZeroDivisionError>) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<BoxIntoRubyError> for Box<dyn RubyException>
impl From<BoxIntoRubyError> for Box<dyn RubyException>
sourcefn from(exception: BoxIntoRubyError) -> Box<dyn RubyException>
fn from(exception: BoxIntoRubyError) -> Box<dyn RubyException>
Converts to this type from the input type.
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<ConstantNameError> for Box<dyn RubyException>
impl From<ConstantNameError> for Box<dyn RubyException>
sourcefn from(exception: ConstantNameError) -> Box<dyn RubyException>
fn from(exception: ConstantNameError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ConvertBytesError> for Box<dyn RubyException>
impl From<ConvertBytesError> for Box<dyn RubyException>
sourcefn from(exception: ConvertBytesError) -> Box<dyn RubyException>
fn from(exception: ConvertBytesError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<DomainError> for Box<dyn RubyException>
impl From<DomainError> for Box<dyn RubyException>
sourcefn from(exception: DomainError) -> Box<dyn RubyException>
fn from(exception: DomainError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<EOFError> for Box<dyn RubyException>
impl From<EOFError> for Box<dyn RubyException>
sourcefn from(exception: EOFError) -> Box<dyn RubyException>
fn from(exception: EOFError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<EncodingError> for Box<dyn RubyException>
impl From<EncodingError> for Box<dyn RubyException>
sourcefn from(exception: EncodingError) -> Box<dyn RubyException>
fn from(exception: EncodingError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Exception> for Box<dyn RubyException>
impl From<Exception> for Box<dyn RubyException>
sourcefn from(exception: Exception) -> Box<dyn RubyException>
fn from(exception: Exception) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Fatal> for Box<dyn RubyException>
impl From<Fatal> for Box<dyn RubyException>
sourcefn from(exception: Fatal) -> Box<dyn RubyException>
fn from(exception: Fatal) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<FiberError> for Box<dyn RubyException>
impl From<FiberError> for Box<dyn RubyException>
sourcefn from(exception: FiberError) -> Box<dyn RubyException>
fn from(exception: FiberError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<FloatDomainError> for Box<dyn RubyException>
impl From<FloatDomainError> for Box<dyn RubyException>
sourcefn from(exception: FloatDomainError) -> Box<dyn RubyException>
fn from(exception: FloatDomainError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<FrozenError> for Box<dyn RubyException>
impl From<FrozenError> for Box<dyn RubyException>
sourcefn from(exception: FrozenError) -> Box<dyn RubyException>
fn from(exception: FrozenError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<IOError> for Box<dyn RubyException>
impl From<IOError> for Box<dyn RubyException>
sourcefn from(exception: IOError) -> Box<dyn RubyException>
fn from(exception: IOError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<IncrementLinenoError> for Box<dyn RubyException>
impl From<IncrementLinenoError> for Box<dyn RubyException>
sourcefn from(exception: IncrementLinenoError) -> Box<dyn RubyException>
fn from(exception: IncrementLinenoError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<IndexError> for Box<dyn RubyException>
impl From<IndexError> for Box<dyn RubyException>
sourcefn from(exception: IndexError) -> Box<dyn RubyException>
fn from(exception: IndexError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<InterpreterExtractError> for Box<dyn RubyException>
impl From<InterpreterExtractError> for Box<dyn RubyException>
sourcefn from(exception: InterpreterExtractError) -> Box<dyn RubyException>
fn from(exception: InterpreterExtractError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<Interrupt> for Box<dyn RubyException>
impl From<Interrupt> for Box<dyn RubyException>
sourcefn from(exception: Interrupt) -> Box<dyn RubyException>
fn from(exception: Interrupt) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<KeyError> for Box<dyn RubyException>
impl From<KeyError> for Box<dyn RubyException>
sourcefn from(exception: KeyError) -> Box<dyn RubyException>
fn from(exception: KeyError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<LoadError> for Box<dyn RubyException>
impl From<LoadError> for Box<dyn RubyException>
sourcefn from(exception: LoadError) -> Box<dyn RubyException>
fn from(exception: LoadError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<LocalJumpError> for Box<dyn RubyException>
impl From<LocalJumpError> for Box<dyn RubyException>
sourcefn from(exception: LocalJumpError) -> Box<dyn RubyException>
fn from(exception: LocalJumpError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NameError> for Box<dyn RubyException>
impl From<NameError> for Box<dyn RubyException>
sourcefn from(exception: NameError) -> Box<dyn RubyException>
fn from(exception: NameError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NoBlockGiven> for Box<dyn RubyException>
impl From<NoBlockGiven> for Box<dyn RubyException>
sourcefn from(exception: NoBlockGiven) -> Box<dyn RubyException>
fn from(exception: NoBlockGiven) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NoMemoryError> for Box<dyn RubyException>
impl From<NoMemoryError> for Box<dyn RubyException>
sourcefn from(exception: NoMemoryError) -> Box<dyn RubyException>
fn from(exception: NoMemoryError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NoMethodError> for Box<dyn RubyException>
impl From<NoMethodError> for Box<dyn RubyException>
sourcefn from(exception: NoMethodError) -> Box<dyn RubyException>
fn from(exception: NoMethodError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NotDefinedError> for Box<dyn RubyException>
impl From<NotDefinedError> for Box<dyn RubyException>
sourcefn from(exception: NotDefinedError) -> Box<dyn RubyException>
fn from(exception: NotDefinedError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<NotImplementedError> for Box<dyn RubyException>
impl From<NotImplementedError> for Box<dyn RubyException>
sourcefn from(exception: NotImplementedError) -> Box<dyn RubyException>
fn from(exception: NotImplementedError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<RangeError> for Box<dyn RubyException>
impl From<RangeError> for Box<dyn RubyException>
sourcefn from(exception: RangeError) -> Box<dyn RubyException>
fn from(exception: RangeError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<RegexpError> for Box<dyn RubyException>
impl From<RegexpError> for Box<dyn RubyException>
sourcefn from(exception: RegexpError) -> Box<dyn RubyException>
fn from(exception: RegexpError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<RuntimeError> for Box<dyn RubyException>
impl From<RuntimeError> for Box<dyn RubyException>
sourcefn from(exception: RuntimeError) -> Box<dyn RubyException>
fn from(exception: RuntimeError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ScriptError> for Box<dyn RubyException>
impl From<ScriptError> for Box<dyn RubyException>
sourcefn from(exception: ScriptError) -> Box<dyn RubyException>
fn from(exception: ScriptError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SecurityError> for Box<dyn RubyException>
impl From<SecurityError> for Box<dyn RubyException>
sourcefn from(exception: SecurityError) -> Box<dyn RubyException>
fn from(exception: SecurityError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SignalException> for Box<dyn RubyException>
impl From<SignalException> for Box<dyn RubyException>
sourcefn from(exception: SignalException) -> Box<dyn RubyException>
fn from(exception: SignalException) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<StandardError> for Box<dyn RubyException>
impl From<StandardError> for Box<dyn RubyException>
sourcefn from(exception: StandardError) -> Box<dyn RubyException>
fn from(exception: StandardError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<StopIteration> for Box<dyn RubyException>
impl From<StopIteration> for Box<dyn RubyException>
sourcefn from(exception: StopIteration) -> Box<dyn RubyException>
fn from(exception: StopIteration) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SymbolOverflowError> for Box<dyn RubyException>
impl From<SymbolOverflowError> for Box<dyn RubyException>
sourcefn from(exception: SymbolOverflowError) -> Box<dyn RubyException>
fn from(exception: SymbolOverflowError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SyntaxError> for Box<dyn RubyException>
impl From<SyntaxError> for Box<dyn RubyException>
sourcefn from(exception: SyntaxError) -> Box<dyn RubyException>
fn from(exception: SyntaxError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SystemCallError> for Box<dyn RubyException>
impl From<SystemCallError> for Box<dyn RubyException>
sourcefn from(exception: SystemCallError) -> Box<dyn RubyException>
fn from(exception: SystemCallError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SystemExit> for Box<dyn RubyException>
impl From<SystemExit> for Box<dyn RubyException>
sourcefn from(exception: SystemExit) -> Box<dyn RubyException>
fn from(exception: SystemExit) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<SystemStackError> for Box<dyn RubyException>
impl From<SystemStackError> for Box<dyn RubyException>
sourcefn from(exception: SystemStackError) -> Box<dyn RubyException>
fn from(exception: SystemStackError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ThreadError> for Box<dyn RubyException>
impl From<ThreadError> for Box<dyn RubyException>
sourcefn from(exception: ThreadError) -> Box<dyn RubyException>
fn from(exception: ThreadError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<TypeError> for Box<dyn RubyException>
impl From<TypeError> for Box<dyn RubyException>
sourcefn from(exception: TypeError) -> Box<dyn RubyException>
fn from(exception: TypeError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<UnboxRubyError> for Box<dyn RubyException>
impl From<UnboxRubyError> for Box<dyn RubyException>
sourcefn from(exception: UnboxRubyError) -> Box<dyn RubyException>
fn from(exception: UnboxRubyError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<UncaughtThrowError> for Box<dyn RubyException>
impl From<UncaughtThrowError> for Box<dyn RubyException>
sourcefn from(exception: UncaughtThrowError) -> Box<dyn RubyException>
fn from(exception: UncaughtThrowError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<WriteError> for Box<dyn RubyException>
impl From<WriteError> for Box<dyn RubyException>
sourcefn from(exception: WriteError) -> Box<dyn RubyException>
fn from(exception: WriteError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl From<ZeroDivisionError> for Box<dyn RubyException>
impl From<ZeroDivisionError> for Box<dyn RubyException>
sourcefn from(exception: ZeroDivisionError) -> Box<dyn RubyException>
fn from(exception: ZeroDivisionError) -> Box<dyn RubyException>
Converts to this type from the input type.
sourceimpl RubyException for Box<dyn RubyException>
impl RubyException for Box<dyn RubyException>
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
.