Exception: Spice::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Spice::Error
- Defined in:
- lib/spice/error.rb
Direct Known Subclasses
BadRequest, Conflict, Forbidden, NotAcceptable, NotFound, Unauthorized
Defined Under Namespace
Classes: BadRequest, Conflict, Forbidden, NotAcceptable, NotFound, Unauthorized
Instance Attribute Summary (collapse)
-
- (Object) http_headers
readonly
Returns the value of attribute http_headers.
Instance Method Summary (collapse)
-
- (Error) initialize(message, http_headers)
constructor
A new instance of Error.
Constructor Details
- (Error) initialize(message, http_headers)
A new instance of Error
5 6 7 8 |
# File 'lib/spice/error.rb', line 5 def initialize(, http_headers) @http_headers = Hash[http_headers] super() end |
Instance Attribute Details
- (Object) http_headers (readonly)
Returns the value of attribute http_headers
3 4 5 |
# File 'lib/spice/error.rb', line 3 def http_headers @http_headers end |