pub enum NodeAppError {
InitFailed(String),
RequestFailed(String),
EventFailed(String),
ShutdownFailed(String),
SerializationError(Error),
CapabilityError(String),
}Expand description
Error type returned by app operations.
Variants surface specific failure modes from each lifecycle hook plus
transport-level errors (serialization, capability dispatch). The
#[from] serde_json::Error impl on NodeAppError::SerializationError
allows the ? operator to propagate JSON errors directly.
Variants§
InitFailed(String)
Returned from NodeApp::init when initialization failed.
RequestFailed(String)
Returned from NodeApp::handle_request when handling failed.
EventFailed(String)
Returned from NodeApp::handle_event or publish_event.
ShutdownFailed(String)
Returned from NodeApp::shutdown when graceful shutdown failed.
SerializationError(Error)
JSON (de)serialization error — auto-converted from
serde_json::Error via the ? operator.
CapabilityError(String)
Returned from NodeApp::handle_capability or invoke_capability.
Trait Implementations§
Source§impl Debug for NodeAppError
impl Debug for NodeAppError
Source§impl Display for NodeAppError
impl Display for NodeAppError
Source§impl Error for NodeAppError
impl Error for NodeAppError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for NodeAppError
impl !RefUnwindSafe for NodeAppError
impl Send for NodeAppError
impl Sync for NodeAppError
impl Unpin for NodeAppError
impl UnsafeUnpin for NodeAppError
impl !UnwindSafe for NodeAppError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more