Class: HTTParty::ResponseError

### Home Classes Methods

### In Files

- lib/httparty/exceptions.rb

### Parent

StandardError

### Methods

- ::new

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- HTTParty
- HTTParty::AllowedFormatsDeprecation
- HTTParty::ClassMethods
- HTTParty::Parser
- HTTParty::RedirectionTooDeep
- HTTParty::Response
- HTTParty::Response::Headers
- HTTParty::ResponseError
- HTTParty::UnsupportedFormat
- HTTParty::UnsupportedURIScheme
- Net
- Net::HTTPHeader

No matching classes.

# HTTParty::ResponseError

@abstract Exceptions which inherit from ResponseError contain the Net::HTTP response object accessible via the {response} method.

### Attributes

response[R]

Returns the response of the last request @return [Net::HTTPResponse] A subclass of Net::HTTPResponse, e.g. Net::HTTPOK

### Public Class Methods

new(response) click to toggle source

Instantiate an instance of ResponseError with a Net::HTTPResponse object @param [Net::HTTPResponse]

    # File lib/httparty/exceptions.rb, line 18
    def initialize(response)
      @response = response
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.