Exception: Spice::Error

Inherits:
StandardError
  • Object
show all
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)

Instance Method Summary (collapse)

Constructor Details

- (Error) initialize(message, http_headers)

Returns a new instance of Error



5
6
7
8
# File 'lib/spice/error.rb', line 5

def initialize(message, http_headers)
  @http_headers = Hash[http_headers]
  super(message)
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