Exception: Leadlight::HttpError

Inherits:
Error
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/leadlight/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.



13
14
15
16
# File 'lib/leadlight/errors.rb', line 13

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/leadlight/errors.rb', line 9

def response
  @response
end