Enum jsonrpc_core::types::error::ErrorCode
[−]
[src]
pub enum ErrorCode { ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, ServerError(i64), }
JSONRPC error code
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
[src]
Returns integer code value
fn description(&self) -> String
[src]
Returns human-readable description
Trait Implementations
impl Debug for ErrorCode
[src]
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorCode) -> bool
[src]
This method tests for !=
.
impl Clone for ErrorCode
[src]
fn clone(&self) -> ErrorCode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<i64> for ErrorCode
[src]
impl<'a> Deserialize<'a> for ErrorCode
[src]
fn deserialize<D>(deserializer: D) -> Result<ErrorCode, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more