Exception: Jr::Error
- Inherits:
-
Exception
- Object
- Exception
- Jr::Error
- Defined in:
- lib/jr.rb
Direct Known Subclasses
AuthenticationError, IDMismatch, ProtocolMismatch, ReservedMethod, ServerError
Constant Summary collapse
- @@message =
'There was an error communicating with the JSON RPC server.'
Instance Attribute Summary collapse
-
#jr ⇒ Object
readonly
Returns the value of attribute jr.
Instance Method Summary collapse
-
#initialize(jr, msg = @@message) ⇒ Error
constructor
A new instance of Error.
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=) @jr = jr super(msg) end |
Instance Attribute Details
#jr ⇒ Object (readonly)
Returns the value of attribute jr.
14 15 16 |
# File 'lib/jr.rb', line 14 def jr @jr end |