Enum jsonrpsee_types::error::CallError
source · pub enum CallError {
InvalidParams(Error),
Failed(Error),
Custom(ErrorObject<'static>),
}
Expand description
Error that occurs when a call failed.
Variants§
InvalidParams(Error)
Invalid params in the call.
Failed(Error)
The call failed (let jsonrpsee assign default error code and error message).
Custom(ErrorObject<'static>)
Custom error with specific JSON-RPC error code, message and data.
Implementations§
Trait Implementations§
source§impl Error for CallError
impl Error for CallError
source§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()
source§impl<'a> From<CallError> for ErrorObject<'a>
impl<'a> From<CallError> for ErrorObject<'a>
source§impl From<CallError> for SubscriptionEmptyError
impl From<CallError> for SubscriptionEmptyError
Auto Trait Implementations§
impl Freeze for CallError
impl RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnwindSafe for CallError
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