class Rack::RPC::Endpoint::JSONRPC::Error

JSON-RPC error objects.

Attributes

code[RW]
data[RW]
message[RW]

Public Instance Methods

to_hash() click to toggle source

@return [Hash]

# File lib/rack/rpc/endpoint/jsonrpc.rb, line 222
def to_hash
  {
    :code    => code.to_i,
    :message => message.to_s,
    :data    => data,
  }
end