class Harvest::HTTPError

Attributes

hint[R]
params[R]
response[R]

Public Class Methods

new(response, params = {}, hint = nil) click to toggle source
Calls superclass method
# File lib/harvest/errors.rb, line 7
def initialize(response, params = {}, hint = nil)
  @response = response
  @params = params
  @hint = hint
  super(response)
end

Public Instance Methods

to_s() click to toggle source
# File lib/harvest/errors.rb, line 14
def to_s
  "#{self.class.to_s} : #{response.code} #{response.body}" + (hint ? "\n#{hint}" : "")
end