[][src]Enum wasmer_runtime_core_fl::error::RuntimeError

pub enum RuntimeError {
    InvokeError(InvokeError),
    Metering(Box<dyn Any + Send>),
    InstanceImage(Box<dyn Any + Send>),
    User(Box<dyn Any + Send>),
}

A RuntimeError is an error that describes why the attempt to fully execute some Wasm has failed.

These reasons vary from the Wasm trapping or otherwise failing directly to user controlled conditions such as metering running out of gas or a user host function returning a custom error type directly.

Variants

InvokeError(InvokeError)

An error relating to the invocation of a Wasm function.

Metering(Box<dyn Any + Send>)

A metering triggered error value.

An error of this type indicates that it was returned by the metering system.

InstanceImage(Box<dyn Any + Send>)

A frozen state of Wasm used to pause and resume execution. Not strictly an "error", but this happens while executing and therefore is a RuntimeError from the persective of the caller that expected the code to fully execute.

User(Box<dyn Any + Send>)

A user triggered error value.

An error returned from a host function.

Trait Implementations

impl Debug for RuntimeError[src]

impl Display for RuntimeError[src]

impl Error for RuntimeError[src]

impl From<InvokeError> for RuntimeError[src]

impl From<RuntimeError> for Error[src]

impl From<RuntimeError> for CallError[src]

impl PartialEq<RuntimeError> for RuntimeError[src]

Auto Trait Implementations

Blanket Implementations

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