Exception: Vend::HTTPError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/vend/exception.rb

Overview

Nonspecific HTTP error which is usually thrown when a non 2xx response is received.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ HTTPError

Returns a new instance of HTTPError.



31
32
33
# File 'lib/vend/exception.rb', line 31

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



29
30
31
# File 'lib/vend/exception.rb', line 29

def response
  @response
end