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.



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

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