pub struct Error(_);
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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 Error
impl From<ArenaSavepointError> for Error
sourcefn from(exception: ArenaSavepointError) -> Error
fn from(exception: ArenaSavepointError) -> Error
Converts to this type from the input type.
sourceimpl From<ArgCountError> for Error
impl From<ArgCountError> for Error
sourcefn from(exception: ArgCountError) -> Error
fn from(exception: ArgCountError) -> Error
Converts to this type from the input type.
sourceimpl From<ArgumentError> for Error
impl From<ArgumentError> for Error
sourcefn from(err: ArgumentError) -> Error
fn from(err: ArgumentError) -> Error
Converts to this type from the input type.
sourceimpl From<ArgumentError> for Error
impl From<ArgumentError> for Error
sourcefn from(err: ArgumentError) -> Error
fn from(err: ArgumentError) -> Error
Converts to this type from the input type.
sourceimpl From<ArgumentError> for Error
impl From<ArgumentError> for Error
sourcefn from(err: ArgumentError) -> Error
fn from(err: ArgumentError) -> Error
Converts to this type from the input type.
sourceimpl From<ArgumentError> for Error
impl From<ArgumentError> for Error
sourcefn from(exception: ArgumentError) -> Error
fn from(exception: ArgumentError) -> Error
Converts to this type from the input type.
sourceimpl From<BoxIntoRubyError> for Error
impl From<BoxIntoRubyError> for Error
sourcefn from(exception: BoxIntoRubyError) -> Error
fn from(exception: BoxIntoRubyError) -> Error
Converts to this type from the input type.
sourceimpl From<CaughtException> for Error
impl From<CaughtException> for Error
sourcefn from(exc: CaughtException) -> Error
fn from(exc: CaughtException) -> Error
Converts to this type from the input type.
sourceimpl From<ConstantNameError> for Error
impl From<ConstantNameError> for Error
sourcefn from(exception: ConstantNameError) -> Error
fn from(exception: ConstantNameError) -> Error
Converts to this type from the input type.
sourceimpl From<ConvertBytesError> for Error
impl From<ConvertBytesError> for Error
sourcefn from(exception: ConvertBytesError) -> Error
fn from(exception: ConvertBytesError) -> Error
Converts to this type from the input type.
sourceimpl From<DomainError> for Error
impl From<DomainError> for Error
sourcefn from(exception: DomainError) -> Error
fn from(exception: DomainError) -> Error
Converts to this type from the input type.
sourceimpl From<DomainError> for Error
impl From<DomainError> for Error
sourcefn from(err: DomainError) -> Error
fn from(err: DomainError) -> Error
Converts to this type from the input type.
sourceimpl From<EncodingError> for Error
impl From<EncodingError> for Error
sourcefn from(exception: EncodingError) -> Error
fn from(exception: EncodingError) -> Error
Converts to this type from the input type.
sourceimpl From<FiberError> for Error
impl From<FiberError> for Error
sourcefn from(exception: FiberError) -> Error
fn from(exception: FiberError) -> Error
Converts to this type from the input type.
sourceimpl From<FloatDomainError> for Error
impl From<FloatDomainError> for Error
sourcefn from(exception: FloatDomainError) -> Error
fn from(exception: FloatDomainError) -> Error
Converts to this type from the input type.
sourceimpl From<FrozenError> for Error
impl From<FrozenError> for Error
sourcefn from(exception: FrozenError) -> Error
fn from(exception: FrozenError) -> Error
Converts to this type from the input type.
sourceimpl From<IncrementLinenoError> for Error
impl From<IncrementLinenoError> for Error
sourcefn from(exception: IncrementLinenoError) -> Error
fn from(exception: IncrementLinenoError) -> Error
Converts to this type from the input type.
sourceimpl From<IndexError> for Error
impl From<IndexError> for Error
sourcefn from(exception: IndexError) -> Error
fn from(exception: IndexError) -> Error
Converts to this type from the input type.
sourceimpl From<InitializeError> for Error
impl From<InitializeError> for Error
sourcefn from(err: InitializeError) -> Error
fn from(err: InitializeError) -> Error
Converts to this type from the input type.
sourceimpl From<InterpreterExtractError> for Error
impl From<InterpreterExtractError> for Error
sourcefn from(exception: InterpreterExtractError) -> Error
fn from(exception: InterpreterExtractError) -> Error
Converts to this type from the input type.
sourceimpl From<InvalidError> for Error
impl From<InvalidError> for Error
sourcefn from(err: InvalidError) -> Error
fn from(err: InvalidError) -> Error
Converts to this type from the input type.
sourceimpl From<LocalJumpError> for Error
impl From<LocalJumpError> for Error
sourcefn from(exception: LocalJumpError) -> Error
fn from(exception: LocalJumpError) -> Error
Converts to this type from the input type.
sourceimpl From<NewSeedError> for Error
impl From<NewSeedError> for Error
sourcefn from(err: NewSeedError) -> Error
fn from(err: NewSeedError) -> Error
Converts to this type from the input type.
sourceimpl From<NoBlockGiven> for Error
impl From<NoBlockGiven> for Error
sourcefn from(exception: NoBlockGiven) -> Error
fn from(exception: NoBlockGiven) -> Error
Converts to this type from the input type.
sourceimpl From<NoMemoryError> for Error
impl From<NoMemoryError> for Error
sourcefn from(exception: NoMemoryError) -> Error
fn from(exception: NoMemoryError) -> Error
Converts to this type from the input type.
sourceimpl From<NoMethodError> for Error
impl From<NoMethodError> for Error
sourcefn from(exception: NoMethodError) -> Error
fn from(exception: NoMethodError) -> Error
Converts to this type from the input type.
sourceimpl From<NotDefinedError> for Error
impl From<NotDefinedError> for Error
sourcefn from(exception: NotDefinedError) -> Error
fn from(exception: NotDefinedError) -> Error
Converts to this type from the input type.
sourceimpl From<NotImplementedError> for Error
impl From<NotImplementedError> for Error
sourcefn from(exception: NotImplementedError) -> Error
fn from(exception: NotImplementedError) -> Error
Converts to this type from the input type.
sourceimpl From<NotImplementedError> for Error
impl From<NotImplementedError> for Error
sourcefn from(err: NotImplementedError) -> Error
fn from(err: NotImplementedError) -> Error
Converts to this type from the input type.
sourceimpl From<RandomBytesError> for Error
impl From<RandomBytesError> for Error
sourcefn from(err: RandomBytesError) -> Error
fn from(err: RandomBytesError) -> Error
Converts to this type from the input type.
sourceimpl From<RangeError> for Error
impl From<RangeError> for Error
sourcefn from(exception: RangeError) -> Error
fn from(exception: RangeError) -> Error
Converts to this type from the input type.
sourceimpl From<RegexpError> for Error
impl From<RegexpError> for Error
sourcefn from(exception: RegexpError) -> Error
fn from(exception: RegexpError) -> Error
Converts to this type from the input type.
sourceimpl From<RuntimeError> for Error
impl From<RuntimeError> for Error
sourcefn from(exception: RuntimeError) -> Error
fn from(exception: RuntimeError) -> Error
Converts to this type from the input type.
sourceimpl From<ScriptError> for Error
impl From<ScriptError> for Error
sourcefn from(exception: ScriptError) -> Error
fn from(exception: ScriptError) -> Error
Converts to this type from the input type.
sourceimpl From<SecurityError> for Error
impl From<SecurityError> for Error
sourcefn from(exception: SecurityError) -> Error
fn from(exception: SecurityError) -> Error
Converts to this type from the input type.
sourceimpl From<SignalException> for Error
impl From<SignalException> for Error
sourcefn from(exception: SignalException) -> Error
fn from(exception: SignalException) -> Error
Converts to this type from the input type.
sourceimpl From<StandardError> for Error
impl From<StandardError> for Error
sourcefn from(exception: StandardError) -> Error
fn from(exception: StandardError) -> Error
Converts to this type from the input type.
sourceimpl From<StopIteration> for Error
impl From<StopIteration> for Error
sourcefn from(exception: StopIteration) -> Error
fn from(exception: StopIteration) -> Error
Converts to this type from the input type.
sourceimpl From<SymbolOverflowError> for Error
impl From<SymbolOverflowError> for Error
sourcefn from(exception: SymbolOverflowError) -> Error
fn from(exception: SymbolOverflowError) -> Error
Converts to this type from the input type.
sourceimpl From<SyntaxError> for Error
impl From<SyntaxError> for Error
sourcefn from(exception: SyntaxError) -> Error
fn from(exception: SyntaxError) -> Error
Converts to this type from the input type.
sourceimpl From<SystemCallError> for Error
impl From<SystemCallError> for Error
sourcefn from(exception: SystemCallError) -> Error
fn from(exception: SystemCallError) -> Error
Converts to this type from the input type.
sourceimpl From<SystemExit> for Error
impl From<SystemExit> for Error
sourcefn from(exception: SystemExit) -> Error
fn from(exception: SystemExit) -> Error
Converts to this type from the input type.
sourceimpl From<SystemStackError> for Error
impl From<SystemStackError> for Error
sourcefn from(exception: SystemStackError) -> Error
fn from(exception: SystemStackError) -> Error
Converts to this type from the input type.
sourceimpl From<ThreadError> for Error
impl From<ThreadError> for Error
sourcefn from(exception: ThreadError) -> Error
fn from(exception: ThreadError) -> Error
Converts to this type from the input type.
sourceimpl From<UnboxRubyError> for Error
impl From<UnboxRubyError> for Error
sourcefn from(exception: UnboxRubyError) -> Error
fn from(exception: UnboxRubyError) -> Error
Converts to this type from the input type.
sourceimpl From<UncaughtThrowError> for Error
impl From<UncaughtThrowError> for Error
sourcefn from(exception: UncaughtThrowError) -> Error
fn from(exception: UncaughtThrowError) -> Error
Converts to this type from the input type.
sourceimpl From<UrandomError> for Error
impl From<UrandomError> for Error
sourcefn from(err: UrandomError) -> Error
fn from(err: UrandomError) -> Error
Converts to this type from the input type.
sourceimpl From<WriteError> for Error
impl From<WriteError> for Error
sourcefn from(exception: WriteError) -> Error
fn from(exception: WriteError) -> Error
Converts to this type from the input type.
sourceimpl From<ZeroDivisionError> for Error
impl From<ZeroDivisionError> for Error
sourcefn from(exception: ZeroDivisionError) -> Error
fn from(exception: ZeroDivisionError) -> Error
Converts to this type from the input type.
sourceimpl RubyException for Error
impl RubyException for Error
sourcefn vm_backtrace(
&self,
interp: &mut Artichoke
) -> Option<Vec<Vec<u8, Global>, Global>>
fn vm_backtrace(
&self,
interp: &mut Artichoke
) -> Option<Vec<Vec<u8, Global>, Global>>
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 Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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