pub enum VMError {
FunctionCallError(FunctionCallError),
ExternalError(Vec<u8>),
InconsistentStateError(InconsistentStateError),
CacheError(CacheError),
}
Variants§
FunctionCallError(FunctionCallError)
ExternalError(Vec<u8>)
Serialized external 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§
Source§impl From<&VMLogicError> for VMError
impl From<&VMLogicError> for VMError
Source§fn from(err: &VMLogicError) -> Self
fn from(err: &VMLogicError) -> Self
Converts to this type from the input type.
Source§impl From<PrepareError> for VMError
impl From<PrepareError> for VMError
Source§fn from(err: PrepareError) -> Self
fn from(err: PrepareError) -> Self
Converts to this type from the input type.
impl Eq for VMError
impl StructuralPartialEq for VMError
Auto Trait Implementations§
impl Freeze for VMError
impl RefUnwindSafe for VMError
impl Send for VMError
impl Sync for VMError
impl Unpin for VMError
impl UnwindSafe for VMError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more