Exception: Rex::ConnectionProxyError

Inherits:
ConnectionError show all
Defined in:
lib/rex/exceptions.rb

Overview

This exception is raised when a proxy fails to pass a connection

Instance Attribute Summary collapse

Attributes included from HostCommunicationError

#host, #port

Instance Method Summary collapse

Methods included from HostCommunicationError

#addr_to_s

Constructor Details

#initialize(host, port, ptype, reason) ⇒ ConnectionProxyError

Returns a new instance of ConnectionProxyError.



293
294
295
296
297
# File 'lib/rex/exceptions.rb', line 293

def initialize(host,port,ptype,reason)
  super(host,port)
  self.ptype = ptype
  self.reason = reason
end

Instance Attribute Details

#ptypeObject

Returns the value of attribute ptype.



303
304
305
# File 'lib/rex/exceptions.rb', line 303

def ptype
  @ptype
end

#reasonObject

Returns the value of attribute reason.



303
304
305
# File 'lib/rex/exceptions.rb', line 303

def reason
  @reason
end

Instance Method Details

#to_sObject



299
300
301
# File 'lib/rex/exceptions.rb', line 299

def to_s
  self.ptype + ": " + self.reason
end