Exception: Rex::UnsupportedProtocol
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Rex::UnsupportedProtocol
- Includes:
- SocketError
- Defined in:
- lib/rex/exceptions.rb
Overview
This exception is raised when an unsupported internet protocol is specified.
Instance Attribute Summary collapse
-
#proto ⇒ Object
Returns the value of attribute proto.
Instance Method Summary collapse
-
#initialize(proto = nil) ⇒ UnsupportedProtocol
constructor
A new instance of UnsupportedProtocol.
- #to_s ⇒ Object
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
#proto ⇒ Object
Returns the value of attribute proto.
251 252 253 |
# File 'lib/rex/exceptions.rb', line 251 def proto @proto end |
Instance Method Details
#to_s ⇒ Object
247 248 249 |
# File 'lib/rex/exceptions.rb', line 247 def to_s "The protocol #{proto} is not supported." end |