Exception: Rex::ConnectionProxyError
- Inherits:
-
ConnectionError
- Object
- IOError
- ConnectionError
- Rex::ConnectionProxyError
- Defined in:
- lib/rex/exceptions.rb
Overview
This exception is raised when a proxy fails to pass a connection
Instance Attribute Summary collapse
-
#ptype ⇒ Object
Returns the value of attribute ptype.
-
#reason ⇒ Object
Returns the value of attribute reason.
Attributes included from HostCommunicationError
Instance Method Summary collapse
-
#initialize(host, port, ptype, reason) ⇒ ConnectionProxyError
constructor
A new instance of ConnectionProxyError.
- #to_s ⇒ Object
Methods included from HostCommunicationError
Constructor Details
#initialize(host, port, ptype, reason) ⇒ ConnectionProxyError
Returns a new instance of ConnectionProxyError.
261 262 263 264 265 |
# File 'lib/rex/exceptions.rb', line 261 def initialize(host,port,ptype,reason) super(host,port) self.ptype = ptype self.reason = reason end |
Instance Attribute Details
#ptype ⇒ Object
Returns the value of attribute ptype.
271 272 273 |
# File 'lib/rex/exceptions.rb', line 271 def ptype @ptype end |
#reason ⇒ Object
Returns the value of attribute reason.
271 272 273 |
# File 'lib/rex/exceptions.rb', line 271 def reason @reason end |
Instance Method Details
#to_s ⇒ Object
267 268 269 |
# File 'lib/rex/exceptions.rb', line 267 def to_s self.ptype + ": " + self.reason end |