Exception: Framey::Api::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api.rb

Direct Known Subclasses

BadRequest, Forbidden, InternalServerError, NotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_headers = {}) ⇒ Error

Returns a new instance of Error.



69
70
71
72
# File 'lib/api.rb', line 69

def initialize(message, http_headers={})
  @http_headers = Hash[http_headers]
  super message
end

Instance Attribute Details

#http_headersObject (readonly)

Returns the value of attribute http_headers.



67
68
69
# File 'lib/api.rb', line 67

def http_headers
  @http_headers
end