Skip to main content

classify_runtime_error

Function classify_runtime_error 

Source
pub fn classify_runtime_error(err: &Error) -> EngineError
Expand description

Classifies a [wasmtime::Error] thrown during execution into a typed EngineError. Order: [wasmtime::Trap] (fuel/epoch), a HostCondition or ScriptRaise in the chain, then the fiber cap; the rest falls through as Trap(message).