Exception: Rex::AddressInUse
- Inherits:
-
ConnectionError
- Object
- IOError
- ConnectionError
- Rex::AddressInUse
- 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
Instance Method Summary collapse
Methods included from HostCommunicationError
Instance Method Details
#to_s ⇒ Object
230 231 232 |
# File 'lib/rex/exceptions.rb', line 230 def to_s "The address is already in use #{addr_to_s}." end |