Exception: SSHScan::Error::NoKexResponse

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

Overview

Failed to do key exchange.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ NoKexResponse

Returns a new instance of NoKexResponse.



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

def initialize(message)
  @message = message
end

Instance Method Details

#to_sObject



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

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