Enum jsonrpsee_types::error::CallError [−][src]
pub enum CallError {
InvalidParams(Error),
Failed(Error),
Custom {
code: i32,
message: String,
data: Option<Box<RawValue>>,
},
}Expand description
Error that occurs when a call failed.
Variants
InvalidParams(Error)Invalid params in the call.
Tuple Fields of InvalidParams
0: ErrorFailed(Error)The call failed (let jsonrpsee assign default error code and error message).
Tuple Fields of Failed
0: ErrorCustom error with specific JSON-RPC error code, message and data.
Fields of Custom
Implementations
Create CallError from a generic error.