Exception: Async::HTTP::Proxy::ConnectFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/async/http/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ConnectFailure

Returns a new instance of ConnectFailure.


34
35
36
37
# File 'lib/async/http/proxy.rb', line 34

def initialize(response)
	super "Failed to connect: #{response.status}"
	@response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.


39
40
41
# File 'lib/async/http/proxy.rb', line 39

def response
  @response
end