Exception: Msf::OptionValidateError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Msf::OptionValidateError
- Includes:
- Exception
- Defined in:
- lib/msf/core/exceptions.rb
Overview
This exception is raised when one or more options failed to pass data store validation. The list of option names can be obtained through the options attribute.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = []) ⇒ OptionValidateError
constructor
A new instance of OptionValidateError.
Constructor Details
#initialize(options = []) ⇒ OptionValidateError
Returns a new instance of OptionValidateError.
27 28 29 30 |
# File 'lib/msf/core/exceptions.rb', line 27 def initialize( = []) @options = super("The following options failed to validate: #{.join(', ')}.") end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options
32 33 34 |
# File 'lib/msf/core/exceptions.rb', line 32 def @options end |