Enum near_vm_errors::VMError
source · [−]pub enum VMError {
FunctionCallError(FunctionCallError),
ExternalError(AnyError),
InconsistentStateError(InconsistentStateError),
CacheError(CacheError),
}
Variants
FunctionCallError(FunctionCallError)
ExternalError(AnyError)
Type erased error from External
trait implementation.
InconsistentStateError(InconsistentStateError)
An error that is caused by an operation on an inconsistent state. E.g. an integer overflow by using a value from the given context.
CacheError(CacheError)
Error caused by caching.
Trait Implementations
sourceimpl From<PrepareError> for VMError
impl From<PrepareError> for VMError
sourcefn from(err: PrepareError) -> Self
fn from(err: PrepareError) -> Self
Converts to this type from the input type.
sourceimpl From<VMLogicError> for VMError
impl From<VMLogicError> for VMError
sourcefn from(err: VMLogicError) -> Self
fn from(err: VMLogicError) -> Self
Converts to this type from the input type.
impl Eq for VMError
impl StructuralEq for VMError
impl StructuralPartialEq for VMError
Auto Trait Implementations
impl !RefUnwindSafe for VMError
impl Send for VMError
impl Sync for VMError
impl Unpin for VMError
impl !UnwindSafe for VMError
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