Enum jsonrpc_core::error::ErrorCode
[−]
[src]
pub enum ErrorCode { ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, ServerError(i64), }
Variants
ParseError
Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
InvalidRequest
The JSON sent is not a valid Request object.
MethodNotFound
The method does not exist / is not available.
InvalidParams
Invalid method parameter(s).
InternalError
Internal JSON-RPC error.
ServerError(i64)
Reserved for implementation-defined server-errors.
Methods
impl ErrorCode
[src]
fn code(&self) -> i64
fn description(&self) -> String
Trait Implementations
impl Debug for ErrorCode
[src]
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorCode) -> bool
This method tests for !=
.
impl Serialize for ErrorCode
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.