Exception: Rex::AddressInUse

Inherits:
ConnectionError show all
Includes:
HostCommunicationError, SocketError
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

#host, #port

Instance Method Summary collapse

Methods included from HostCommunicationError

#addr_to_s, #initialize

Instance Method Details

#to_sObject



261
262
263
# File 'lib/rex/exceptions.rb', line 261

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