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.



275
276
277
# File 'lib/rex/exceptions.rb', line 275

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

Instance Attribute Details

#protoObject

Returns the value of attribute proto.



283
284
285
# File 'lib/rex/exceptions.rb', line 283

def proto
  @proto
end

Instance Method Details

#to_sObject



279
280
281
# File 'lib/rex/exceptions.rb', line 279

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