Exception: VerbotenKeys::Errors::StrategyNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/verboten_keys/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(invalid_strategy) ⇒ StrategyNotFoundError

Returns a new instance of StrategyNotFoundError.



30
31
32
# File 'lib/verboten_keys/errors.rb', line 30

def initialize(invalid_strategy)
  super("VerbotenKeys' strategy must be a valid option. You passed in :#{invalid_strategy}, but the only valid options are: #{VerbotenKeys::Configuration::STRATEGIES}.")
end