Exception: Rex::InvalidDestination

Inherits:
ConnectionError show all
Defined in:
lib/rex/exceptions.rb

Overview

This connection error is raised when an attempt is made to connect to a broadcast or network address.

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



236
237
238
239
240
# File 'lib/rex/exceptions.rb', line 236

def to_s
  str = "The destination is invalid: #{addr_to_s}."
  str << " #{@reason}" unless @reason.nil?
  str
end