class

JSON::RPC::Error

Inherits JSON::RPC::Exception < Exception < Reference < Object

Raised when the peer returns a JSON-RPC error object. Mirrors the error member defined by the JSON-RPC 2.0 specification.

Constructors

new(code : Int32, message : String, data : JSON::Any | Nil = nil)
Source

Instance methods

code

The JSON-RPC error code. The range -32768..-32000 is reserved by the specification; everything else is application defined.

Source
data

The optional data member, carrying additional, application-defined information about the error.

Source

Nested types