Exception: Rex::AddressInUse
- Inherits:
-
ConnectionError
- Object
- IOError
- ConnectionError
- Rex::AddressInUse
- Defined in:
- lib/rex/exceptions.rb
Overview
This exception is listed for backwards compatibility. We had been using AddressInUse as the exception for both bind errors and connection errors triggered by connection attempts to broadcast and network addresses. The two classes above have split this into their respective sources, but callers may still expect the old behavior.
Instance Attribute Summary
Attributes included from HostCommunicationError
Instance Method Summary collapse
Methods included from HostCommunicationError
Instance Method Details
#to_s ⇒ Object
272 273 274 275 276 |
# File 'lib/rex/exceptions.rb', line 272 def to_s str = "The address is already in use or unavailable: #{addr_to_s}." str << " #{@reason}" unless @reason.nil? str end |