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]

[src]

Wraps given ErrorCode

[src]

Creates new ParseError

[src]

Creates new InvalidRequest

[src]

Creates new MethodNotFound

[src]

Creates new InvalidParams

[src]

Creates new InternalError

[src]

Creates new InvalidRequest with invalid version description

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for Error
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more