Exception: Saorin::ServerError

Inherits:
RPCError show all
Defined in:
lib/saorin/error.rb

Instance Attribute Summary

Attributes inherited from RPCError

#code, #data

Instance Method Summary collapse

Methods inherited from RPCError

#to_h

Methods included from Dumpable

#to_json

Constructor Details

#initialize(message, options = {}) ⇒ ServerError

Returns a new instance of ServerError.



55
56
57
58
# File 'lib/saorin/error.rb', line 55

def initialize(message, options = {})
  options[:code] ||= -32000
  super message, options
end