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.



262
263
264
265
266
# File 'lib/rex/exceptions.rb', line 262

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.



272
273
274
# File 'lib/rex/exceptions.rb', line 272

def ptype
  @ptype
end

#reasonObject

Returns the value of attribute reason.



272
273
274
# File 'lib/rex/exceptions.rb', line 272

def reason
  @reason
end

Instance Method Details

#to_sObject



268
269
270
# File 'lib/rex/exceptions.rb', line 268

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