Exception: Rave::BadOptionError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Rave::BadOptionError
- Defined in:
- lib/exceptions.rb
Overview
A method option was not one of the values allowed.
Instance Method Summary collapse
-
#initialize(option_name, valid_options, received) ⇒ BadOptionError
constructor
:nodoc:.
Constructor Details
#initialize(option_name, valid_options, received) ⇒ BadOptionError
:nodoc:
16 17 18 |
# File 'lib/exceptions.rb', line 16 def initialize(option_name, , received) # :nodoc: super("#{option_name.inspect} option must be one of #{.inspect}, not #{received.inspect}") end |