Exception: InvalidProductTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(product_type) ⇒ InvalidProductTypeError

Returns a new instance of InvalidProductTypeError.



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

def initialize(product_type)
  super("Product of type #{product_type.upcase} not in catalog!")
end