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