Exception: Fathom::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Fathom::Error
- Defined in:
- lib/fathom/errors.rb
Overview
Base error class for all Fathom errors
Direct Known Subclasses
AuthenticationError, BadRequestError, ForbiddenError, NotFoundError, RateLimitError, ServerError
Instance Attribute Summary collapse
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message = nil, response: nil, http_status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, response: nil, http_status: nil) ⇒ Error
Returns a new instance of Error.
8 9 10 11 12 |
# File 'lib/fathom/errors.rb', line 8 def initialize( = nil, response: nil, http_status: nil) @response = response @http_status = http_status super() end |
Instance Attribute Details
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
6 7 8 |
# File 'lib/fathom/errors.rb', line 6 def http_status @http_status end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/fathom/errors.rb', line 6 def response @response end |