Exception: ContextIO::Error
- Inherits:
-
StandardError
- Object
- StandardError
- ContextIO::Error
- Defined in:
- lib/context-io/error.rb
Overview
Base class for ContextIO exceptions.
Direct Known Subclasses
Defined Under Namespace
Classes: BadRequest, ClientError, Forbidden, InternalServerError, NotFound, PaymentRequired, ServerError, ServiceUnavailable, Unauthorized
Instance Attribute Summary collapse
-
#http_headers ⇒ Hash{String => String}
readonly
The HTTP headers of the response.
Instance Method Summary collapse
-
#initialize(message, http_headers) ⇒ Error
constructor
private
Initialize a new ContextIO error.
Constructor Details
#initialize(message, http_headers) ⇒ Error
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initialize a new ContextIO error
18 19 20 21 |
# File 'lib/context-io/error.rb', line 18 def initialize(, http_headers) @http_headers = Hash[http_headers] super() end |
Instance Attribute Details
#http_headers ⇒ Hash{String => String} (readonly)
Returns The HTTP headers of the response.
9 10 11 |
# File 'lib/context-io/error.rb', line 9 def http_headers @http_headers end |