Exception: InvalidOptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/coding_challenge/commands/util/invalid_option_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(product_type, option_type, option_argument) ⇒ InvalidOptionError

Returns a new instance of InvalidOptionError.



4
5
6
# File 'lib/coding_challenge/commands/util/invalid_option_error.rb', line 4

def initialize(product_type, option_type, option_argument)
  super("Product of type #{product_type.upcase} and #{option_type.upcase} option type of value #{option_argument.upcase} not in catalog!")
end