Exception: PromotionalRulesTypeError

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

Instance Method Summary collapse

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