Exception: Rex::AddressInUse

Inherits:
ConnectionError show all
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, #reason

Instance Method Summary collapse

Methods included from HostCommunicationError

#addr_to_s, #initialize

Instance Method Details

#to_sObject



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