Enum wasmer_runtime_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, Global>), Breakpoint(Box<RuntimeError, Global>), }
Expand description
An error that happened while invoking a Wasm function.
Variants
Indicates an exceptional circumstance such as a bug in Wasmer (please file an issue!) or a hardware failure.
Indicates that a trap occurred that is not known to Wasmer.
Fields of UnknownTrap
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.
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
EarlyTrap(Box<RuntimeError, Global>)
An “early trap” occurred. TODO: document this properly
Breakpoint(Box<RuntimeError, Global>)
Indicates that a breakpoint was hit. The inner value is dependent upon the middleware or backend being used.
Trait Implementations
Performs the conversion.