pub enum Error {
Show 15 variants
InvalidArgument(&'static str),
RegionFull(usize),
ModuleError(ModuleError),
LimitsExceeded(String),
NoLinearMemory(String),
SymbolNotFound(String),
FuncNotFound(u32, u32),
RuntimeFault(FaultDetails),
RuntimeTerminated(TerminationDetails),
DlError(Error),
InstanceNotReturned,
InstanceNotYielded,
StartYielded,
InternalError(Error),
Unsupported(String),
}
Expand description
Lucet runtime errors.
Variants§
InvalidArgument(&'static str)
RegionFull(usize)
A Region
cannot currently accommodate additional instances.
ModuleError(ModuleError)
A module error occurred.
LimitsExceeded(String)
A method call or module specification would exceed an instance’s
Limit
s.
NoLinearMemory(String)
A method call attempted to modify linear memory for an instance that does not have linear memory
SymbolNotFound(String)
An attempt to look up a WebAssembly function by its symbol name failed.
FuncNotFound(u32, u32)
An attempt to look up a WebAssembly function by its table index failed.
RuntimeFault(FaultDetails)
An instance aborted due to a runtime fault.
RuntimeTerminated(TerminationDetails)
An instance terminated, potentially with extra information about the termination.
This condition can arise from a hostcall explicitly calling
Vmctx::terminate()
, or via a custom signal handler
that returns SignalBehavior::Terminate
.
DlError(Error)
IO errors arising during dynamic loading with DlModule
.
InstanceNotReturned
InstanceNotYielded
StartYielded
InternalError(Error)
A catch-all for internal errors that are likely unrecoverable by the runtime user.
As the API matures, these will likely become rarer, replaced by new variants of this enum, or by panics for truly unrecoverable situations.
Unsupported(String)
An unsupported feature was used.