Exception: Keymaker::HttpError

Inherits:
Error
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/keymaker/errors.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, message = response.status.to_s) ⇒ HttpError

Returns a new instance of HttpError.



12
13
14
15
# File 'lib/keymaker/errors.rb', line 12

def initialize(response, message=response.status.to_s)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/keymaker/errors.rb', line 8

def response
  @response
end