Enum json_rpc2::Error [−][src]
pub enum Error {
Parse {
data: String,
},
InvalidRequest {
data: String,
},
MethodNotFound {
id: Option<Value>,
name: String,
},
InvalidParams {
id: Option<Value>,
data: String,
},
Boxed(Box<dyn Error + Send + Sync>),
}
Expand description
Enumeration of errors.
Variants
Parse
Fields
data: String
The underlying JSON error message.
Error generated when a JSON payload cannot be parsed.
InvalidRequest
Fields
data: String
The underlying JSON error message.
Error generated when the contents of a JSON payload do not match the request type semantics.
MethodNotFound
Error generated when the request method name did not match any services.
InvalidParams
Fields
data: String
The underlying JSON error message.
Error generated when request parameters cannot be converted to the expected type.
Boxed(Box<dyn Error + Send + Sync>)
Generic error type converted to an internal error response.