Exception: Jr::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/jr.rb

Constant Summary collapse

@@message =
'There was an error communicating with the JSON RPC server.'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jr, msg = @@message) ⇒ Error

Returns a new instance of Error.



16
17
18
19
20
# File 'lib/jr.rb', line 16

def initialize(jr, msg=@@message)
  @jr = jr

  super(msg)
end

Instance Attribute Details

#jrObject (readonly)

Returns the value of attribute jr.



14
15
16
# File 'lib/jr.rb', line 14

def jr
  @jr
end