Struct jsonrpc_core::types::error::Error [] [src]

pub struct Error {
    pub code: ErrorCode,
    pub message: String,
    pub data: Option<Value>,
}

Error object as defined in Spec

Fields

Code

Message

Optional data

Methods

impl Error
[src]

Wraps given ErrorCode

Creates new ParseError

Creates new InvalidRequest

Creates new MethodNotFound

Creates new InvalidParams

Creates new InternalError

Creates new InvalidRequest with invalid version description

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more