Sha256: 4ebccca8e4162f8bb0586e03e6c9ae19abd0d731feced99d89f8b7360f1d5e2a

Contents?: true

Size: 281 Bytes

Versions: 25

Compression:

Stored size: 281 Bytes

Contents

module SSHScan
  module Error
    # Target did not respond with an SSH banner.
    class NoBanner < RuntimeError
      def initialize(message)
        @message = message
      end
      def to_s
        "#{self.class.to_s.split('::')[-1]}: #{@message}"
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
ssh_scan-0.0.25 lib/ssh_scan/error/no_banner.rb
ssh_scan-0.0.24 lib/ssh_scan/error/no_banner.rb
ssh_scan-0.0.23 lib/ssh_scan/error/no_banner.rb
ssh_scan-0.0.22 lib/ssh_scan/error/no_banner.rb
ssh_scan-0.0.21 lib/ssh_scan/error/no_banner.rb