[][src]Enum cosmwasm_vm::VmError

#[non_exhaustive]pub enum VmError {
    CacheErr {
        msg: String,
        backtrace: Backtrace,
    },
    CommunicationErr {
        source: CommunicationError,
    },
    CompileErr {
        msg: String,
        backtrace: Backtrace,
    },
    ConversionErr {
        from_type: String,
        to_type: String,
        input: String,
        backtrace: Backtrace,
    },
    GenericErr {
        msg: String,
        backtrace: Backtrace,
    },
    InstantiationErr {
        msg: String,
        backtrace: Backtrace,
    },
    IntegrityErr {
        backtrace: Backtrace,
    },
    IteratorDoesNotExist {
        id: u32,
        backtrace: Backtrace,
    },
    ParseErr {
        target: String,
        msg: String,
        backtrace: Backtrace,
    },
    SerializeErr {
        source: String,
        msg: String,
        backtrace: Backtrace,
    },
    ResolveErr {
        msg: String,
        backtrace: Backtrace,
    },
    RuntimeErr {
        msg: String,
        backtrace: Backtrace,
    },
    StaticValidationErr {
        msg: String,
        backtrace: Backtrace,
    },
    UninitializedContextData {
        kind: String,
        backtrace: Backtrace,
    },
    FfiErr {
        source: FfiError,
    },
    GasDepletion,
    WriteAccessDenied {
        backtrace: Backtrace,
    },
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CacheErr

Fields of CacheErr

msg: Stringbacktrace: Backtrace
CommunicationErr

Fields of CommunicationErr

source: CommunicationError
CompileErr

Fields of CompileErr

msg: Stringbacktrace: Backtrace
ConversionErr

Fields of ConversionErr

from_type: Stringto_type: Stringinput: Stringbacktrace: Backtrace
GenericErr

Whenever there is no specific error type available

Fields of GenericErr

msg: Stringbacktrace: Backtrace
InstantiationErr

Fields of InstantiationErr

msg: Stringbacktrace: Backtrace
IntegrityErr

Fields of IntegrityErr

backtrace: Backtrace
IteratorDoesNotExist

Fields of IteratorDoesNotExist

id: u32backtrace: Backtrace
ParseErr

Fields of ParseErr

target: String

the target type that was attempted

msg: Stringbacktrace: Backtrace
SerializeErr

Fields of SerializeErr

source: String

the source type that was attempted

msg: Stringbacktrace: Backtrace
ResolveErr

Fields of ResolveErr

msg: Stringbacktrace: Backtrace
RuntimeErr

Fields of RuntimeErr

msg: Stringbacktrace: Backtrace
StaticValidationErr

Fields of StaticValidationErr

msg: Stringbacktrace: Backtrace
UninitializedContextData

Fields of UninitializedContextData

kind: Stringbacktrace: Backtrace
FfiErr

Fields of FfiErr

source: FfiError
GasDepletion
WriteAccessDenied

Fields of WriteAccessDenied

backtrace: Backtrace

Trait Implementations

impl Debug for VmError[src]

impl Display for VmError[src]

impl Error for VmError where
    Self: Debug + Display
[src]

impl ErrorCompat for VmError[src]

impl From<CommunicationError> for VmError[src]

impl From<CompileError> for VmError[src]

impl From<Error> for VmError[src]

impl From<FfiError> for VmError[src]

impl From<ResolveError> for VmError[src]

impl From<RuntimeError> 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsErrorSource for T where
    T: 'static + Error
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.