Exception: Rex::ConnectionRefused

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

Overview

This exception is raised when a connection attempt fails because the remote side refused the connection.

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



195
196
197
198
199
# File 'lib/rex/exceptions.rb', line 195

def to_s
  str = "The connection was refused by the remote host #{addr_to_s}."
  str << " #{@reason}" unless @reason.nil?
  str
end