Exception: Async::HTTP::Proxy::ConnectFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Async::HTTP::Proxy::ConnectFailure
- Defined in:
- lib/async/http/proxy.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ConnectFailure
constructor
A new instance of ConnectFailure.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
22 23 24 |
# File 'lib/async/http/proxy.rb', line 22 def response @response end |