Exception: PolarLoop::RpcError
- Defined in:
- lib/polarloop/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(message, code: nil, data: nil) ⇒ RpcError
constructor
A new instance of RpcError.
Constructor Details
#initialize(message, code: nil, data: nil) ⇒ RpcError
Returns a new instance of RpcError.
13 14 15 16 17 |
# File 'lib/polarloop/errors.rb', line 13 def initialize(, code: nil, data: nil) @code = code @data = data super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
11 12 13 |
# File 'lib/polarloop/errors.rb', line 11 def code @code end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
11 12 13 |
# File 'lib/polarloop/errors.rb', line 11 def data @data end |