Exception: PromotionalRulesTypeError

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

Overview

custom exception for when the user does not provide a hash

Instance Method Summary collapse

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