Exception: Rave::BadOptionError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/exceptions.rb

Overview

A method option was not one of the values allowed.

Instance Method Summary collapse

Constructor Details

#initialize(option_name, valid_options, received) ⇒ BadOptionError

:nodoc:



16
17
18
# File 'lib/exceptions.rb', line 16

def initialize(option_name, valid_options, received) # :nodoc:
  super("#{option_name.inspect} option must be one of #{valid_options.inspect}, not #{received.inspect}")
end