Exception: Msf::OptionValidateError

Inherits:
ArgumentError
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(options = []) ⇒ OptionValidateError

Returns a new instance of OptionValidateError


27
28
29
# File 'lib/msf/core/exceptions.rb', line 27

def initialize(options = [])
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options


35
36
37
# File 'lib/msf/core/exceptions.rb', line 35

def options
  @options
end

Instance Method Details

#to_sObject


31
32
33
# File 'lib/msf/core/exceptions.rb', line 31

def to_s
  "The following options failed to validate: #{options.join(', ')}."
end