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()