Enum runestick::VmErrorKind [−][src]
pub enum VmErrorKind {}Show 59 variants
Unwound { kind: Box<VmErrorKind>, unit: Arc<Unit>, ip: usize, frames: Vec<CallFrame>, }, AccessError { error: AccessError, }, Panic { reason: Panic, }, NoRunningVm, Halted { halt: VmHaltInfo, }, FormatError, StackError { error: StackError, }, Overflow, Underflow, DivideByZero, MissingConst { hash: Hash, }, MissingEntry { item: Item, hash: Hash, }, MissingFunction { hash: Hash, }, MissingInstanceFunction { hash: Hash, instance: TypeInfo, }, IpOutOfBounds, UnsupportedBinaryOperation { op: &'static str, lhs: TypeInfo, rhs: TypeInfo, }, UnsupportedUnaryOperation { op: &'static str, operand: TypeInfo, }, MissingProtocol { protocol: Protocol, actual: TypeInfo, }, MissingStaticString { slot: usize, }, MissingStaticObjectKeys { slot: usize, }, MissingVariantRtti { hash: Hash, }, MissingRtti { hash: Hash, }, BadArgumentCount { actual: usize, expected: usize, }, BadArgumentAt { arg: usize, expected: TypeInfo, actual: TypeInfo, }, BadArgument { error: VmError, arg: usize, }, UnsupportedIndexSet { target: TypeInfo, index: TypeInfo, value: TypeInfo, }, UnsupportedIndexGet { target: TypeInfo, index: TypeInfo, }, UnsupportedTupleIndexGet { target: TypeInfo, }, UnsupportedTupleIndexSet { target: TypeInfo, }, UnsupportedObjectSlotIndexGet { target: TypeInfo, }, UnsupportedObjectSlotIndexSet { target: TypeInfo, }, UnsupportedIs { value: TypeInfo, test_type: TypeInfo, }, UnsupportedCallFn { actual_type: TypeInfo, }, ObjectIndexMissing { slot: usize, }, MissingIndex { target: TypeInfo, index: VmIntegerRepr, }, MissingIndexKey { target: TypeInfo, index: Key, }, OutOfRange { index: VmIntegerRepr, len: VmIntegerRepr, }, MissingField { target: TypeInfo, field: String, }, MissingStructField { target: &'static str, name: &'static str, }, MissingTupleIndex { target: &'static str, index: usize, }, UnsupportedUnwrap { actual: TypeInfo, }, UnsupportedUnwrapNone, UnsupportedUnwrapErr { err: TypeInfo, }, UnsupportedIsValueOperand { actual: TypeInfo, }, GeneratorComplete, Expected { expected: TypeInfo, actual: TypeInfo, }, ExpectedAny { actual: TypeInfo, }, ValueToIntegerCoercionError { from: VmIntegerRepr, to: &'static str, }, IntegerToValueCoercionError { from: VmIntegerRepr, to: &'static str, }, ExpectedTupleLength { actual: usize, expected: usize, }, IterationError, MissingVariantName, MissingVariant { name: Box<str>, }, ExpectedVariant { actual: TypeInfo, }, ConstNotSupported { actual: TypeInfo, }, KeyNotSupported { actual: TypeInfo, }, MissingInterfaceEnvironment, IndexOutOfBounds, UnsupportedRange,
Expand description
The kind of error encountered.
Variants
A vm error that was propagated from somewhere else.
In order to represent this, we need to preserve the instruction pointer and eventually unit from where the error happened.
Fields of Unwound
Fields of AccessError
error: AccessError
Fields of Panic
reason: Panic
Fields of Halted
halt: VmHaltInfo
Fields of StackError
error: StackError
Fields of MissingConst
hash: Hash
Fields of MissingFunction
hash: Hash
Fields of MissingStaticString
slot: usize
Fields of MissingStaticObjectKeys
slot: usize
Fields of MissingVariantRtti
hash: Hash
Fields of MissingRtti
hash: Hash
Fields of UnsupportedTupleIndexGet
target: TypeInfo
Fields of UnsupportedTupleIndexSet
target: TypeInfo
Fields of UnsupportedObjectSlotIndexGet
target: TypeInfo
Fields of UnsupportedObjectSlotIndexSet
target: TypeInfo
Fields of UnsupportedCallFn
actual_type: TypeInfo
Fields of ObjectIndexMissing
slot: usize
Fields of MissingIndex
target: TypeInfo
index: VmIntegerRepr
Fields of OutOfRange
index: VmIntegerRepr
len: VmIntegerRepr
Fields of UnsupportedUnwrap
actual: TypeInfo
Fields of UnsupportedUnwrapErr
err: TypeInfo
Fields of UnsupportedIsValueOperand
actual: TypeInfo
Trying to resume a generator that has completed.
Fields of ExpectedAny
actual: TypeInfo
Fields of ValueToIntegerCoercionError
from: VmIntegerRepr
to: &'static str
Fields of IntegerToValueCoercionError
from: VmIntegerRepr
to: &'static str
Fields of ExpectedVariant
actual: TypeInfo
Fields of ConstNotSupported
actual: TypeInfo
Fields of KeyNotSupported
actual: TypeInfo
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.