Enum rusk_vm::VMError [−][src]
pub enum VMError {}Show variants
InvalidArguments, ContractPanic(String), MemoryNotFound, InvalidABICall, InvalidUtf8, InvalidEd25519PublicKey, InvalidEd25519Signature, ContractReturn(i32, i32), OutOfGas, NotEnoughFunds, UnknownContract, WASMError(Error), Trap(Trap), WasmiError(Error), IOError(Error), InvalidWASMModule, StoreError(CanonError),
The errors that can happen while executing the VM
Variants
Invalid arguments in host call
ContractPanic(String)
The contract panicked with message in String
Could not find WASM memory
Invalid ABI Call
Invalid Utf8
Invalid Public key
Invalid Signature
Contract returned, not an error per se, this is how contracts return.
Contract execution ran out of gas
Not enough funds for call
Contract could not be found in the state
WASMError(Error)
WASM threw an error
Trap(Trap)
wasmi trap triggered
WasmiError(Error)
Wasmi threw an error
IOError(Error)
Input output error
Invalid WASM Module
StoreError(CanonError)
Error propagated from underlying store
Implementations
impl VMError
[src]
impl VMError
[src]pub fn from_store_error(err: CanonError) -> Self
[src]
pub fn from_store_error(err: CanonError) -> Self
[src]Create a VMError from the associated stores
Trait Implementations
impl Fail for VMError
[src]
impl Fail for VMError
[src]fn cause(&self) -> Option<&dyn Fail>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
impl HostError for VMError
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more