Exception: Rex::AddressInUse

Inherits:
ConnectionError 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. Note that Windows raises this in some cases when attempting to connect to addresses that it can’t handle, e.g. “0.0.0.0”. Thus, this is a ConnectionError.

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