pub enum Error {
Show 18 variants
Custom(String),
WrongType(String),
WrongSize(String),
MissingProperty(String),
PropertyAccess(String),
Bounds(String),
Convert(String),
HexStringNotEven(String),
FasterHex(Error),
JsValue(JsErrorData),
Abi(String),
NotAnObject,
NotWasmAbiPointer,
NotWasmAbiPointerForClass(String),
NotAnObjectOfClass(String),
NoConstructorOfClass(String),
UnableToObtainConstructorName(String),
ClassConstructorMatch(String, String),
}Expand description
Errors produced by the workflow_wasm crate.
Variants§
Custom(String)
Custom error carrying an arbitrary message.
WrongType(String)
A value did not have the expected JavaScript type.
WrongSize(String)
A value or buffer did not have the expected size.
MissingProperty(String)
A required object property was not present.
PropertyAccess(String)
An error occurred while accessing an object property.
Bounds(String)
A numeric value fell outside of its permitted range.
Convert(String)
A value could not be converted to the requested type.
HexStringNotEven(String)
A hex string had an odd number of characters and cannot be decoded.
FasterHex(Error)
Error propagated from the faster_hex decoding library.
JsValue(JsErrorData)
Error originating from a JavaScript JsValue.
Abi(String)
Error relating to the WASM ABI representation.
NotAnObject
The supplied argument was not a JavaScript object.
NotWasmAbiPointer
The supplied object did not carry a WASM ABI pointer.
NotWasmAbiPointerForClass(String)
The supplied object did not carry a WASM ABI pointer for the named class.
NotAnObjectOfClass(String)
The supplied argument was not an object of the named class type.
NoConstructorOfClass(String)
The object’s constructor could not be obtained for the expected class.
UnableToObtainConstructorName(String)
The object’s constructor name could not be obtained for the expected class.
ClassConstructorMatch(String, String)
The object’s constructor name did not match the expected class name.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()