Enum rant::runtime::RuntimeErrorType [−][src]
pub enum RuntimeErrorType {}Show variants
StackOverflow, StackUnderflow, InvalidAccess, InvalidOperation, InternalError, ArgumentMismatch, ArgumentError, CannotInvokeValue, AssertError, TypeError, ValueError(ValueError), IndexError(IndexError), KeyError(KeyError), SliceError(SliceError), SelectorError(SelectorError), ModuleLoadError(ModuleLoadError), UserError, ControlFlowError, DataSourceError(DataSourceError),
Provides general categories of runtime errors encountered in Rant.
Variants
Stack has overflowed.
Rant error ID: STACK_OVERFLOW_ERROR
Stack has underflowed.
Rant error ID: STACK_UNDERFLOW_ERROR
Variable access error, such as attempting to access a nonexistent variable or write to a constant
Rant error ID: INVALID_ACCESS_ERROR
Operation is not valid for the current program state
Rant error ID: INVALID_OP_ERROR
Internal VM error, usually indicating a bug or corrupted data
Rant error ID: INTERNAL_ERROR
Too few/many arguments were passed to a function
Rant error ID: ARG_MISMATCH_ERROR
Invalid argument passed to function
Rant error ID: ARG_ERROR
Tried to invoke a non-function
Rant error ID: INVOKE_ERROR
Assertion failed
Rant error ID: ASSERT_ERROR
Error occurred due to unexpected value type
Rant error ID: TYPE_ERROR
ValueError(ValueError)
Error occurred when creating value
Rant error ID: VALUE_ERROR
IndexError(IndexError)
Error occurred while indexing value
Rant error ID: INDEX_ERROR
KeyError(KeyError)
Error occurred while keying value
Rant error ID: KEY_ERROR
SliceError(SliceError)
Error occurred while slicing value
Rant error ID: SLICE_ERROR
Error occurred while iterating selector
Rant error ID: SELECTOR_ERROR
ModuleLoadError(ModuleLoadError)
Error occurred while trying to load a module
Rant error ID: MODULE_ERROR
Error manually triggered by program
Rant error ID: USER_ERROR
Error during control flow operation (e.g. return or break)
Rant error ID: CONTROL_FLOW_ERROR
DataSourceError(DataSourceError)
Error occurred during data source operation.
Rant error ID: DATA_SOURCE_ERROR
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RuntimeErrorType
impl RefUnwindSafe for RuntimeErrorType
impl Send for RuntimeErrorType
impl Send for RuntimeErrorType
impl Sync for RuntimeErrorType
impl Sync for RuntimeErrorType
impl Unpin for RuntimeErrorType
impl Unpin for RuntimeErrorType
impl UnwindSafe for RuntimeErrorType
impl UnwindSafe for RuntimeErrorType