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


243
244
245
# File 'lib/rex/exceptions.rb', line 243

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

Instance Attribute Details

#protoObject

Returns the value of attribute proto


251
252
253
# File 'lib/rex/exceptions.rb', line 251

def proto
  @proto
end

Instance Method Details

#to_sObject


247
248
249
# File 'lib/rex/exceptions.rb', line 247

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