Exception: Rex::AddressInUse

Inherits:
RuntimeError
  • Object
show all
Includes:
HostCommunicationError, SocketError
Defined in:
lib/rex/exceptions.rb

Overview

This exception is raised when an attempt to use an address or port that is already in use occurs, such as binding to a host on a given port that is already in use.

Instance Attribute Summary

Attributes included from HostCommunicationError

#host, #port

Instance Method Summary collapse

Methods included from HostCommunicationError

#addr_to_s, #initialize

Instance Method Details

#to_sObject



230
231
232
# File 'lib/rex/exceptions.rb', line 230

def to_s
	"The address is already in use #{addr_to_s}."
end