Class: Excon::Error::ProxyConnectionError
- Defined in:
- lib/excon/error.rb
Overview
Raised when a proxy refuses to open a CONNECT tunnel. A Socket error, so it is retried and rescued as one; socket_error returns the error itself.
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Attributes inherited from Socket
Instance Method Summary collapse
-
#initialize(msg, request = nil, response = nil) ⇒ ProxyConnectionError
constructor
A new instance of ProxyConnectionError.
Constructor Details
#initialize(msg, request = nil, response = nil) ⇒ ProxyConnectionError
Returns a new instance of ProxyConnectionError.
72 73 74 75 76 |
# File 'lib/excon/error.rb', line 72 def initialize(msg, request = nil, response = nil) super(msg) @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
70 71 72 |
# File 'lib/excon/error.rb', line 70 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
70 71 72 |
# File 'lib/excon/error.rb', line 70 def response @response end |