Exception: SSHScan::Error::ConnectionRefused

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/ssh_scan/error/connection_refused.rb

Overview

Target refused connection attempt.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ConnectionRefused

Returns a new instance of ConnectionRefused.



5
6
7
# File 'lib/ssh_scan/error/connection_refused.rb', line 5

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/ssh_scan/error/connection_refused.rb', line 8

def to_s
  "#{self.class.to_s.split('::')[-1]}: #{@message}"
end