Exception: Jikanrb::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Jikanrb::Error
- Defined in:
- lib/jikanrb/errors.rb
Overview
Base error for the gem
Direct Known Subclasses
ClientError, ConfigurationError, ConnectionError, ParseError, ServerError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, response: nil, status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response: nil, status: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/jikanrb/errors.rb', line 8 def initialize( = nil, response: nil, status: nil) @response = response @status = status super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/jikanrb/errors.rb', line 6 def response @response end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/jikanrb/errors.rb', line 6 def status @status end |