Enum wasmedge_sdk::error::WasmEdgeError
pub enum WasmEdgeError {
Show 29 variants
Operation(String),
User(u32),
Core(CoreError),
ImportObjCreate,
ExecutorCreate,
Store(StoreError),
StatisticsCreate,
ModuleCreate,
LoaderCreate,
ConfigCreate,
CompilerCreate,
ValidatorCreate,
Vm(VmError),
Func(FuncError),
FuncTypeCreate,
Mem(MemError),
MemTypeCreate,
Global(GlobalError),
GlobalTypeCreate,
Table(TableError),
TableTypeCreate,
Import(ImportError),
Export(ExportError),
Instance(InstanceError),
FoundNulByte(NulError),
NotFoundNulByte(FromBytesWithNulError),
Utf8(Utf8Error),
FromUtf8(FromUtf8Error),
WindowsPathConversion(String),
}
Expand description
The error types used by both wasmedge-sys and wasmedge crates.
Variants§
Operation(String)
User(u32)
Core(CoreError)
Errors raised by WasmEdge Core.
ImportObjCreate
ExecutorCreate
Store(StoreError)
StatisticsCreate
ModuleCreate
LoaderCreate
ConfigCreate
CompilerCreate
ValidatorCreate
Vm(VmError)
Func(FuncError)
FuncTypeCreate
Mem(MemError)
MemTypeCreate
Global(GlobalError)
GlobalTypeCreate
Table(TableError)
TableTypeCreate
Import(ImportError)
Export(ExportError)
Instance(InstanceError)
FoundNulByte(NulError)
NotFoundNulByte(FromBytesWithNulError)
Utf8(Utf8Error)
FromUtf8(FromUtf8Error)
WindowsPathConversion(String)
Trait Implementations§
§impl Clone for WasmEdgeError
impl Clone for WasmEdgeError
§fn clone(&self) -> WasmEdgeError
fn clone(&self) -> WasmEdgeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for WasmEdgeError
impl Debug for WasmEdgeError
§impl Display for WasmEdgeError
impl Display for WasmEdgeError
§impl Error for WasmEdgeError
impl Error for WasmEdgeError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<FromBytesWithNulError> for WasmEdgeError
impl From<FromBytesWithNulError> for WasmEdgeError
§fn from(source: FromBytesWithNulError) -> WasmEdgeError
fn from(source: FromBytesWithNulError) -> WasmEdgeError
Converts to this type from the input type.
§impl From<FromUtf8Error> for WasmEdgeError
impl From<FromUtf8Error> for WasmEdgeError
§fn from(source: FromUtf8Error) -> WasmEdgeError
fn from(source: FromUtf8Error) -> WasmEdgeError
Converts to this type from the input type.
§impl From<NulError> for WasmEdgeError
impl From<NulError> for WasmEdgeError
§fn from(source: NulError) -> WasmEdgeError
fn from(source: NulError) -> WasmEdgeError
Converts to this type from the input type.
§impl From<Utf8Error> for WasmEdgeError
impl From<Utf8Error> for WasmEdgeError
§fn from(source: Utf8Error) -> WasmEdgeError
fn from(source: Utf8Error) -> WasmEdgeError
Converts to this type from the input type.
§impl PartialEq<WasmEdgeError> for WasmEdgeError
impl PartialEq<WasmEdgeError> for WasmEdgeError
§fn eq(&self, other: &WasmEdgeError) -> bool
fn eq(&self, other: &WasmEdgeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.