Exception: PromotionalRulesForbiddenKeys

Inherits:
TypeError
  • Object
show all
Defined in:
lib/unit4/checkout/exceptions.rb

Instance Method Summary collapse

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