Exception: Rex::UnsupportedProtocol

Inherits:
ArgumentError
  • Object
show all
Includes:
SocketError
Defined in:
lib/rex/exceptions.rb

Overview

This exception is raised when an unsupported internet protocol is specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proto = nil) ⇒ UnsupportedProtocol

Returns a new instance of UnsupportedProtocol.



288
289
290
# File 'lib/rex/exceptions.rb', line 288

def initialize(proto = nil)
  self.proto = proto
end

Instance Attribute Details

#protoObject

Returns the value of attribute proto.



296
297
298
# File 'lib/rex/exceptions.rb', line 296

def proto
  @proto
end

Instance Method Details

#to_sObject



292
293
294
# File 'lib/rex/exceptions.rb', line 292

def to_s
  "The protocol #{proto} is not supported."
end