Class: BetterFaraday::HTTPError

Inherits:
Faraday::Error
  • Object
show all
Defined in:
lib/better-faraday.rb

Direct Known Subclasses

HTTP4xx, HTTP5xx

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HTTPError

Returns a new instance of HTTPError.



226
227
228
# File 'lib/better-faraday.rb', line 226

def initialize(response)
  super(response.inspect, response)
end

Instance Method Details

#inspectObject



230
231
232
# File 'lib/better-faraday.rb', line 230

def inspect
  %[#{self.class}\n\n#{response.inspect}]
end