Exception: PromotionalRulesForbiddenKeys
- Inherits:
-
TypeError
- Object
- TypeError
- PromotionalRulesForbiddenKeys
- Defined in:
- lib/unit4/checkout/exceptions.rb
Instance Method Summary collapse
-
#initialize(msg = "expected Hash with optional keys 'product_discounts' and 'total_price_discount", exception_type = "custom") ⇒ PromotionalRulesForbiddenKeys
constructor
A new instance of PromotionalRulesForbiddenKeys.
Constructor Details
#initialize(msg = "expected Hash with optional keys 'product_discounts' and 'total_price_discount", exception_type = "custom") ⇒ PromotionalRulesForbiddenKeys
Returns a new instance of PromotionalRulesForbiddenKeys.
12 13 14 15 |
# File 'lib/unit4/checkout/exceptions.rb', line 12 def initialize(msg = "expected Hash with optional keys 'product_discounts' and 'total_price_discount", exception_type = "custom") @exception_type = exception_type super(msg) end |