Exception: Capgun::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Capgun::Error
- Defined in:
- lib/capgun/error.rb
Overview
Custom error class for rescuing from all Capgun errors
Direct Known Subclasses
Defined Under Namespace
Classes: BadGateway, BadRequest, ClientError, Forbidden, InternalServerError, NotAcceptable, NotFound, ServerError, 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) ⇒ Capgun::Error
constructor
Initializes a new Error object.
Constructor Details
#initialize(message, http_headers) ⇒ Capgun::Error
Initializes a new Error object
11 12 13 14 |
# File 'lib/capgun/error.rb', line 11 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/capgun/error.rb', line 4 def http_headers @http_headers end |