Enum wasmer_runtime_core_fl::error::InvokeError[][src]

pub enum InvokeError {
    FailedWithNoError,
    UnknownTrap {
        address: usize,
        signal: &'static str,
    },
    TrapCode {
        code: ExceptionCode,
        srcloc: u32,
    },
    UnknownTrapCode {
        trap_code: String,
        srcloc: u32,
    },
    EarlyTrap(Box<RuntimeError>),
    Breakpoint(Box<RuntimeError>),
}
Expand description

An error that happened while invoking a Wasm function.

Variants

FailedWithNoError

Indicates an exceptional circumstance such as a bug in Wasmer (please file an issue!) or a hardware failure.

UnknownTrap

Indicates that a trap occurred that is not known to Wasmer.

Fields of UnknownTrap

address: usize

The address that the trap occurred at.

signal: &'static str

The name of the signal.

TrapCode

A trap that Wasmer knows about occurred.

Fields of TrapCode

code: ExceptionCode

The type of exception.

srcloc: u32

Where in the Wasm file this trap orginated from.

UnknownTrapCode

A trap occurred that Wasmer knows about but it had a trap code that we weren’t expecting or that we do not handle. This error may be backend-specific.

Fields of UnknownTrapCode

trap_code: String

The trap code we saw but did not recognize.

srcloc: u32

Where in the Wasm file this trap orginated from.

EarlyTrap

An “early trap” occurred. TODO: document this properly

Tuple Fields of EarlyTrap

0: Box<RuntimeError>
Breakpoint

Indicates that a breakpoint was hit. The inner value is dependent upon the middleware or backend being used.

Tuple Fields of Breakpoint

0: Box<RuntimeError>

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.