Exception: Rainmaker::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rainmaker::Error
- Defined in:
- lib/rainmaker/error.rb
Overview
Custom error class for rescuing from all Rainmaker errors
Direct Known Subclasses
BadGateway, BadRequest, Forbidden, InternalServerError, Invalid, NotFound, ServiceUnavailable, Unauthorized
Instance Attribute Summary collapse
-
#http_headers ⇒ Object
readonly
Returns the value of attribute http_headers.
Instance Method Summary collapse
-
#initialize(message, http_headers) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, http_headers) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/rainmaker/error.rb', line 6 def initialize(, http_headers) @http_headers = Hash[http_headers] super end |
Instance Attribute Details
#http_headers ⇒ Object (readonly)
Returns the value of attribute http_headers.
4 5 6 |
# File 'lib/rainmaker/error.rb', line 4 def http_headers @http_headers end |