Exception: PromotionalRulesTypeError
- Inherits:
-
TypeError
- Object
- TypeError
- PromotionalRulesTypeError
- Defined in:
- lib/unit4/checkout/exceptions.rb
Overview
custom exception for when the user does not provide a hash
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.
3 4 5 6 7 |
# File 'lib/unit4/checkout/exceptions.rb', line 3 def initialize(class_name, msg = "expected a Hash, got ", exception_type = "custom") msg << class_name @exception_type = exception_type super(msg) end |