Exception: Theoldreader::APIError
- Inherits:
-
TheoldreaderError
- Object
- StandardError
- TheoldreaderError
- Theoldreader::APIError
- Defined in:
- lib/theoldreader/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, response_body, errors) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(status, response_body, errors) ⇒ APIError
Returns a new instance of APIError.
6 7 8 |
# File 'lib/theoldreader/errors.rb', line 6 def initialize(status, response_body, errors) super("status: #{status}, body: #{response_body}, errors: #{errors.to_s}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/theoldreader/errors.rb', line 4 def errors @errors end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
4 5 6 |
# File 'lib/theoldreader/errors.rb', line 4 def response_body @response_body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/theoldreader/errors.rb', line 4 def status @status end |