Exception: PromotionalRulesTypeError
- Inherits:
-
TypeError
- Object
- TypeError
- PromotionalRulesTypeError
- Defined in:
- lib/unit4/checkout/exceptions.rb
Instance Method Summary collapse
-
#initialize(class_name, msg = "expected a Hash, got ", exception_type = "custom") ⇒ PromotionalRulesTypeError
constructor
A new instance of PromotionalRulesTypeError.
Constructor Details
#initialize(class_name, msg = "expected a Hash, got ", exception_type = "custom") ⇒ PromotionalRulesTypeError
Returns a new instance of PromotionalRulesTypeError.
4 5 6 7 8 |
# File 'lib/unit4/checkout/exceptions.rb', line 4 def initialize(class_name, msg = "expected a Hash, got ", exception_type = "custom") msg += class_name @exception_type = exception_type super(msg) end |