Class: Excon::Error::ProxyConnectionError

Inherits:
Socket
  • Object
show all
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

Attributes inherited from Socket

#socket_error

Instance Method Summary collapse

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