Struct artichoke::prelude::error::Error[][src]

pub struct Error(_);

Trait Implementations

impl Debug for Error[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Display for Error[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Error for Error[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

fn backtrace(&self) -> Option<&Backtrace>[src]

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

fn description(&self) -> &str1.0.0[src]

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

impl From<ArenaSavepointError> for Error[src]

pub fn from(exception: ArenaSavepointError) -> Error[src]

Performs the conversion.

impl From<ArgCountError> for Error[src]

pub fn from(exception: ArgCountError) -> Error[src]

Performs the conversion.

impl From<ArgumentError> for Error[src]

pub fn from(err: ArgumentError) -> Error[src]

Performs the conversion.

impl From<ArgumentError> for Error[src]

pub fn from(err: ArgumentError) -> Error[src]

Performs the conversion.

impl From<ArgumentError> for Error[src]

pub fn from(exception: ArgumentError) -> Error[src]

Performs the conversion.

impl From<ArgumentError> for Error[src]

pub fn from(err: ArgumentError) -> Error[src]

Performs the conversion.

impl From<Box<ArenaSavepointError, Global>> for Error[src]

pub fn from(exception: Box<ArenaSavepointError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ArgCountError, Global>> for Error[src]

pub fn from(exception: Box<ArgCountError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ArgumentError, Global>> for Error[src]

pub fn from(exception: Box<ArgumentError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<BoxIntoRubyError, Global>> for Error[src]

pub fn from(exception: Box<BoxIntoRubyError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ConstantNameError, Global>> for Error[src]

pub fn from(exception: Box<ConstantNameError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ConvertBytesError, Global>> for Error[src]

pub fn from(exception: Box<ConvertBytesError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<DomainError, Global>> for Error[src]

pub fn from(exception: Box<DomainError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<EOFError, Global>> for Error[src]

pub fn from(exception: Box<EOFError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<EncodingError, Global>> for Error[src]

pub fn from(exception: Box<EncodingError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<Exception, Global>> for Error[src]

pub fn from(exception: Box<Exception, Global>) -> Error[src]

Performs the conversion.

impl From<Box<Fatal, Global>> for Error[src]

pub fn from(exception: Box<Fatal, Global>) -> Error[src]

Performs the conversion.

impl From<Box<FiberError, Global>> for Error[src]

pub fn from(exception: Box<FiberError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<FloatDomainError, Global>> for Error[src]

pub fn from(exception: Box<FloatDomainError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<FrozenError, Global>> for Error[src]

pub fn from(exception: Box<FrozenError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<IOError, Global>> for Error[src]

pub fn from(exception: Box<IOError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<IncrementLinenoError, Global>> for Error[src]

pub fn from(exception: Box<IncrementLinenoError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<IndexError, Global>> for Error[src]

pub fn from(exception: Box<IndexError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<InterpreterAllocError, Global>> for Error[src]

pub fn from(exception: Box<InterpreterAllocError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<InterpreterExtractError, Global>> for Error[src]

pub fn from(exception: Box<InterpreterExtractError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<Interrupt, Global>> for Error[src]

pub fn from(exception: Box<Interrupt, Global>) -> Error[src]

Performs the conversion.

impl From<Box<IoError, Global>> for Error[src]

pub fn from(exception: Box<IoError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<KeyError, Global>> for Error[src]

pub fn from(exception: Box<KeyError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<LoadError, Global>> for Error[src]

pub fn from(exception: Box<LoadError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<LocalJumpError, Global>> for Error[src]

pub fn from(exception: Box<LocalJumpError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NameError, Global>> for Error[src]

pub fn from(exception: Box<NameError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NoBlockGiven, Global>> for Error[src]

pub fn from(exception: Box<NoBlockGiven, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NoMemoryError, Global>> for Error[src]

pub fn from(exception: Box<NoMemoryError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NoMethodError, Global>> for Error[src]

pub fn from(exception: Box<NoMethodError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NotDefinedError, Global>> for Error[src]

pub fn from(exception: Box<NotDefinedError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<NotImplementedError, Global>> for Error[src]

pub fn from(exception: Box<NotImplementedError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<RangeError, Global>> for Error[src]

pub fn from(exception: Box<RangeError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<RegexpError, Global>> for Error[src]

pub fn from(exception: Box<RegexpError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<RuntimeError, Global>> for Error[src]

pub fn from(exception: Box<RuntimeError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ScriptError, Global>> for Error[src]

pub fn from(exception: Box<ScriptError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SecurityError, Global>> for Error[src]

pub fn from(exception: Box<SecurityError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SignalException, Global>> for Error[src]

pub fn from(exception: Box<SignalException, Global>) -> Error[src]

Performs the conversion.

impl From<Box<StandardError, Global>> for Error[src]

pub fn from(exception: Box<StandardError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<StopIteration, Global>> for Error[src]

pub fn from(exception: Box<StopIteration, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SymbolOverflowError, Global>> for Error[src]

pub fn from(exception: Box<SymbolOverflowError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SyntaxError, Global>> for Error[src]

pub fn from(exception: Box<SyntaxError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SystemCallError, Global>> for Error[src]

pub fn from(exception: Box<SystemCallError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SystemExit, Global>> for Error[src]

pub fn from(exception: Box<SystemExit, Global>) -> Error[src]

Performs the conversion.

impl From<Box<SystemStackError, Global>> for Error[src]

pub fn from(exception: Box<SystemStackError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ThreadError, Global>> for Error[src]

pub fn from(exception: Box<ThreadError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<TypeError, Global>> for Error[src]

pub fn from(exception: Box<TypeError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<UnboxRubyError, Global>> for Error[src]

pub fn from(exception: Box<UnboxRubyError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<UncaughtThrowError, Global>> for Error[src]

pub fn from(exception: Box<UncaughtThrowError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<WriteError, Global>> for Error[src]

pub fn from(exception: Box<WriteError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<ZeroDivisionError, Global>> for Error[src]

pub fn from(exception: Box<ZeroDivisionError, Global>) -> Error[src]

Performs the conversion.

impl From<Box<dyn RubyException + 'static, Global>> for Error[src]

pub fn from(exc: Box<dyn RubyException + 'static, Global>) -> Error[src]

Performs the conversion.

impl From<BoxIntoRubyError> for Error[src]

pub fn from(exception: BoxIntoRubyError) -> Error[src]

Performs the conversion.

impl From<CaughtException> for Error[src]

pub fn from(exc: CaughtException) -> Error[src]

Performs the conversion.

impl From<ConstantNameError> for Error[src]

pub fn from(exception: ConstantNameError) -> Error[src]

Performs the conversion.

impl From<ConvertBytesError> for Error[src]

pub fn from(exception: ConvertBytesError) -> Error[src]

Performs the conversion.

impl From<DomainError> for Error[src]

pub fn from(exception: DomainError) -> Error[src]

Performs the conversion.

impl From<DomainError> for Error[src]

pub fn from(err: DomainError) -> Error[src]

Performs the conversion.

impl From<EOFError> for Error[src]

pub fn from(exception: EOFError) -> Error[src]

Performs the conversion.

impl From<EncodingError> for Error[src]

pub fn from(exception: EncodingError) -> Error[src]

Performs the conversion.

impl From<Error> for Error[src]

pub fn from(err: Error) -> Error[src]

Performs the conversion.

impl From<Error> for Error[src]

pub fn from(err: Error) -> Error[src]

Performs the conversion.

impl From<Error> for Error[src]

pub fn from(err: Error) -> Error[src]

Performs the conversion.

impl From<Error> for Error[src]

pub fn from(err: Error) -> Error[src]

Performs the conversion.

impl From<Exception> for Error[src]

pub fn from(exception: Exception) -> Error[src]

Performs the conversion.

impl From<Fatal> for Error[src]

pub fn from(exception: Fatal) -> Error[src]

Performs the conversion.

impl From<FiberError> for Error[src]

pub fn from(exception: FiberError) -> Error[src]

Performs the conversion.

impl From<FloatDomainError> for Error[src]

pub fn from(exception: FloatDomainError) -> Error[src]

Performs the conversion.

impl From<FrozenError> for Error[src]

pub fn from(exception: FrozenError) -> Error[src]

Performs the conversion.

impl From<IOError> for Error[src]

pub fn from(exception: IOError) -> Error[src]

Performs the conversion.

impl From<IncrementLinenoError> for Error[src]

pub fn from(exception: IncrementLinenoError) -> Error[src]

Performs the conversion.

impl From<IndexError> for Error[src]

pub fn from(exception: IndexError) -> Error[src]

Performs the conversion.

impl From<InitializeError> for Error[src]

pub fn from(err: InitializeError) -> Error[src]

Performs the conversion.

impl From<InterpreterAllocError> for Error[src]

pub fn from(exception: InterpreterAllocError) -> Error[src]

Performs the conversion.

impl From<InterpreterExtractError> for Error[src]

pub fn from(exception: InterpreterExtractError) -> Error[src]

Performs the conversion.

impl From<Interrupt> for Error[src]

pub fn from(exception: Interrupt) -> Error[src]

Performs the conversion.

impl From<InvalidError> for Error[src]

pub fn from(err: InvalidError) -> Error[src]

Performs the conversion.

impl From<IoError> for Error[src]

pub fn from(exception: IoError) -> Error[src]

Performs the conversion.

impl From<KeyError> for Error[src]

pub fn from(exception: KeyError) -> Error[src]

Performs the conversion.

impl From<LoadError> for Error[src]

pub fn from(exception: LoadError) -> Error[src]

Performs the conversion.

impl From<LocalJumpError> for Error[src]

pub fn from(exception: LocalJumpError) -> Error[src]

Performs the conversion.

impl From<NameError> for Error[src]

pub fn from(exception: NameError) -> Error[src]

Performs the conversion.

impl From<NewSeedError> for Error[src]

pub fn from(err: NewSeedError) -> Error[src]

Performs the conversion.

impl From<NoBlockGiven> for Error[src]

pub fn from(exception: NoBlockGiven) -> Error[src]

Performs the conversion.

impl From<NoMemoryError> for Error[src]

pub fn from(exception: NoMemoryError) -> Error[src]

Performs the conversion.

impl From<NoMethodError> for Error[src]

pub fn from(exception: NoMethodError) -> Error[src]

Performs the conversion.

impl From<NotDefinedError> for Error[src]

pub fn from(exception: NotDefinedError) -> Error[src]

Performs the conversion.

impl From<NotImplementedError> for Error[src]

pub fn from(exception: NotImplementedError) -> Error[src]

Performs the conversion.

impl From<NotImplementedError> for Error[src]

pub fn from(err: NotImplementedError) -> Error[src]

Performs the conversion.

impl From<RandomBytesError> for Error[src]

pub fn from(err: RandomBytesError) -> Error[src]

Performs the conversion.

impl From<RangeError> for Error[src]

pub fn from(exception: RangeError) -> Error[src]

Performs the conversion.

impl From<RegexpError> for Error[src]

pub fn from(exception: RegexpError) -> Error[src]

Performs the conversion.

impl From<RuntimeError> for Error[src]

pub fn from(exception: RuntimeError) -> Error[src]

Performs the conversion.

impl From<ScriptError> for Error[src]

pub fn from(exception: ScriptError) -> Error[src]

Performs the conversion.

impl From<SecurityError> for Error[src]

pub fn from(exception: SecurityError) -> Error[src]

Performs the conversion.

impl From<SignalException> for Error[src]

pub fn from(exception: SignalException) -> Error[src]

Performs the conversion.

impl From<StandardError> for Error[src]

pub fn from(exception: StandardError) -> Error[src]

Performs the conversion.

impl From<StopIteration> for Error[src]

pub fn from(exception: StopIteration) -> Error[src]

Performs the conversion.

impl From<SymbolOverflowError> for Error[src]

pub fn from(exception: SymbolOverflowError) -> Error[src]

Performs the conversion.

impl From<SyntaxError> for Error[src]

pub fn from(exception: SyntaxError) -> Error[src]

Performs the conversion.

impl From<SystemCallError> for Error[src]

pub fn from(exception: SystemCallError) -> Error[src]

Performs the conversion.

impl From<SystemExit> for Error[src]

pub fn from(exception: SystemExit) -> Error[src]

Performs the conversion.

impl From<SystemStackError> for Error[src]

pub fn from(exception: SystemStackError) -> Error[src]

Performs the conversion.

impl From<ThreadError> for Error[src]

pub fn from(exception: ThreadError) -> Error[src]

Performs the conversion.

impl From<TypeError> for Error[src]

pub fn from(exception: TypeError) -> Error[src]

Performs the conversion.

impl From<UnboxRubyError> for Error[src]

pub fn from(exception: UnboxRubyError) -> Error[src]

Performs the conversion.

impl From<UncaughtThrowError> for Error[src]

pub fn from(exception: UncaughtThrowError) -> Error[src]

Performs the conversion.

impl From<UrandomError> for Error[src]

pub fn from(err: UrandomError) -> Error[src]

Performs the conversion.

impl From<WriteError> for Error[src]

pub fn from(exception: WriteError) -> Error[src]

Performs the conversion.

impl From<ZeroDivisionError> for Error[src]

pub fn from(exception: ZeroDivisionError) -> Error[src]

Performs the conversion.

impl RubyException for Error[src]

pub fn name(&self) -> Cow<'_, str>[src]

Class name of the Exception.

pub fn message(&self) -> Cow<'_, [u8]>[src]

Message of the Exception. Read more

pub fn vm_backtrace(
    &self,
    interp: &mut Artichoke
) -> Option<Vec<Vec<u8, Global>, Global>>
[src]

Optional backtrace specified by a Vec of frames.

pub fn as_mrb_value(&self, interp: &mut Artichoke) -> Option<mrb_value>[src]

Return a raiseable 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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

pub fn vzip(self) -> V[src]