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


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

#ptypeObject

Returns the value of attribute ptype


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

def ptype
  @ptype
end

#reasonObject

Returns the value of attribute reason


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

def reason
  @reason
end

Instance Method Details

#to_sObject


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

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