pub enum Error {
Show 17 variants
Custom(String),
CallbackError(CallbackError),
IO(Error),
NW(Error),
JsValue(String),
PoisonError(String),
GlobalObjectNotFound,
IpcTargetNotFound(Id),
SerdeWasmBindgen(Error),
UnknownBroadcastMessageKind,
Id(Error),
MalformedCtl,
ChannelSendError,
ChannelRecvError,
BroadcastDataNotObject,
Wasm(Error),
Ipc(Error),
}Expand description
Errors produced by the workflow-nw crate.
Variants§
Custom(String)
A custom, free-form error message.
CallbackError(CallbackError)
Error originating from a WASM callback invocation.
IO(Error)
Underlying I/O error.
NW(Error)
Error returned from the nw_sys NW.js bindings.
JsValue(String)
A JavaScript exception captured as a string.
PoisonError(String)
A mutex/lock was poisoned.
GlobalObjectNotFound
The JavaScript window.global object could not be found.
IpcTargetNotFound(Id)
No IPC target window matching the given id was found.
SerdeWasmBindgen(Error)
Serialization/deserialization error via serde-wasm-bindgen.
UnknownBroadcastMessageKind
A received broadcast message had an unrecognized kind.
Id(Error)
Error parsing an identifier.
MalformedCtl
A control (Ctl) message could not be parsed.
ChannelSendError
Failed to send a message over an IPC channel.
ChannelRecvError
Failed to receive a message from an IPC channel.
BroadcastDataNotObject
Broadcast payload was expected to be a JavaScript object but was not.
Wasm(Error)
Error originating from the workflow-wasm crate.
Ipc(Error)
Error originating from the IPC subsystem.
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()