Exception: Rodzilla::JsonRpc::Error::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Rodzilla::JsonRpc::Error::ResponseError
- Defined in:
- lib/rodzilla/json_rpc/error.rb
Overview
Raised whenever the JsonRpc::Response#error attribute is not nil
Also inherited by Client & ServerError for handling HTTP Status Codes
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code) ⇒ ResponseError
Returns a new instance of ResponseError.
17 18 19 |
# File 'lib/rodzilla/json_rpc/error.rb', line 17 def initialize(code) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/rodzilla/json_rpc/error.rb', line 15 def code @code end |