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.



17
18
19
20
# File 'lib/async/http/proxy.rb', line 17

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



22
23
24
# File 'lib/async/http/proxy.rb', line 22

def response
  @response
end