Exception: HTTParty::ResponseError Abstract

Inherits:
Error
  • Object
show all
Defined in:
lib/httparty/exceptions.rb

Overview

This class is abstract.

Exceptions which inherit from ResponseError contain the Net::HTTP

response object accessible via the #response method.

Direct Known Subclasses

RedirectionTooDeep

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ResponseError) initialize(response)

Instantiate an instance of ResponseError with a Net::HTTPResponse object



21
22
23
# File 'lib/httparty/exceptions.rb', line 21

def initialize(response)
  @response = response
end

Instance Attribute Details

- (Net::HTTPResponse) response (readonly)

Returns the response of the last request Net::HTTPOK



17
18
19
# File 'lib/httparty/exceptions.rb', line 17

def response
  @response
end