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.



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

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

Instance Method Details

#inspectObject



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

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