Exception: SDM::RPCError

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

Overview

RPCError is a generic RPC error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ RPCError

Returns a new instance of RPCError.



22
23
24
25
# File 'lib/errors/errors.rb', line 22

def initialize(msg, code)
    @code = code
    super(msg)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



21
22
23
# File 'lib/errors/errors.rb', line 21

def code
  @code
end