Enum rant::runtime::RuntimeErrorType[][src]

pub enum RuntimeErrorType {
    StackOverflow,
    StackUnderflow,
    InvalidAccess,
    InvalidOperation,
    InternalError,
    ArgumentMismatch,
    ArgumentError,
    CannotInvokeValue,
    AssertError,
    TypeError,
    ValueError(ValueError),
    IndexError(IndexError),
    KeyError(KeyError),
    SliceError(SliceError),
    SelectorError(SelectorError),
    ModuleLoadError(ModuleLoadError),
    UserError,
    ControlFlowError,
}

Provides general categories of runtime errors encountered in Rant.

Variants

StackOverflow

Stack overflow

StackUnderflow

Stack underflow

InvalidAccess

Variable access error, such as attempting to access a nonexistent variable or write to a constant

InvalidOperation

Operation is not valid for the current program state

InternalError

Internal VM error, usually indicating a bug or corrupted data

ArgumentMismatch

Too few/many arguments were passed to a function

ArgumentError

Invalid argument passed to function

CannotInvokeValue

Tried to invoke a non-function

AssertError

Assertion failed

TypeError

Error occurred due to unexpected value type

ValueError(ValueError)

Error occurred when creating value

IndexError(IndexError)

Error occurred while indexing value

KeyError(KeyError)

Error occurred while keying value

SliceError(SliceError)

Error occurred while slicing value

SelectorError(SelectorError)

Error occurred while iterating selector

ModuleLoadError(ModuleLoadError)

Error occurred while trying to load a module

UserError

Error manually triggered by program

ControlFlowError

Error during control flow operation (e.g. return or break)

Trait Implementations

impl Debug for RuntimeErrorType[src]

impl Display for RuntimeErrorType[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,