Exception: Rex::BindFailed

Inherits:
ArgumentError
  • Object
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 or not available occurs. such as binding to a host on a given port that is already in use, or when a bind address is specified that is not available to the host.

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



255
256
257
258
259
# File 'lib/rex/exceptions.rb', line 255

def to_s
  str = "The address is already in use or unavailable: #{addr_to_s}."
  str << " #{@reason}" unless @reason.nil?
  str
end