Exception: JRPC::Errors::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/jrpc/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, code: nil) ⇒ ServerError

Returns a new instance of ServerError.



17
18
19
20
# File 'lib/jrpc/errors.rb', line 17

def initialize(message, code: nil)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



15
16
17
# File 'lib/jrpc/errors.rb', line 15

def code
  @code
end