Exception: Rex::ArgumentError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Rex::ArgumentError
- Includes:
- Exception
- Defined in:
- lib/rex/exceptions.rb
Overview
This exception is raised when an invalid argument is supplied to a method.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ ArgumentError
constructor
A new instance of ArgumentError.
- #to_s ⇒ Object
Constructor Details
#initialize(message = nil) ⇒ ArgumentError
Returns a new instance of ArgumentError.
57 58 59 |
# File 'lib/rex/exceptions.rb', line 57 def initialize( = nil) @message = end |
Instance Method Details
#to_s ⇒ Object
61 62 63 64 65 66 67 |
# File 'lib/rex/exceptions.rb', line 61 def to_s str = 'An invalid argument was specified.' if @message str << " #{@message}" end str end |