pub enum ProcedureError {
Deserialize(DeserializeError),
Serialize(SerializeError),
Unwind(Box<dyn Any + Send>),
Resolver(Box<dyn Error + Sync + Send>),
}Expand description
Universal error type for the type-erased execution layer.
All errors that can occur during procedure execution are represented here.
Higher-level error types (e.g., ORPCError) convert into ProcedureError
via the Resolver variant.
Variants§
Deserialize(DeserializeError)
Input deserialization failed (malformed JSON, type mismatch, etc.)
Serialize(SerializeError)
Output serialization failed
Unwind(Box<dyn Any + Send>)
Handler panicked (caught by catch_unwind)
Resolver(Box<dyn Error + Sync + Send>)
Application-level error from user handler or middleware
Trait Implementations§
Source§impl Debug for ProcedureError
impl Debug for ProcedureError
Source§impl Display for ProcedureError
impl Display for ProcedureError
Source§impl Error for ProcedureError
impl Error for ProcedureError
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()
Source§impl From<DeserializeError> for ProcedureError
impl From<DeserializeError> for ProcedureError
Source§fn from(err: DeserializeError) -> ProcedureError
fn from(err: DeserializeError) -> ProcedureError
Converts to this type from the input type.
Source§impl From<ORPCError> for ProcedureError
impl From<ORPCError> for ProcedureError
Source§impl From<SerializeError> for ProcedureError
impl From<SerializeError> for ProcedureError
Source§fn from(err: SerializeError) -> ProcedureError
fn from(err: SerializeError) -> ProcedureError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProcedureError
impl !RefUnwindSafe for ProcedureError
impl Send for ProcedureError
impl !Sync for ProcedureError
impl Unpin for ProcedureError
impl UnsafeUnpin for ProcedureError
impl !UnwindSafe for ProcedureError
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