Exception: InvalidProductTypeError
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidProductTypeError
- Defined in:
- lib/coding_challenge/commands/util/invalid_product_type_error.rb
Instance Method Summary collapse
-
#initialize(product_type) ⇒ InvalidProductTypeError
constructor
A new instance of InvalidProductTypeError.
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 |