Exception: PayPro::ValidationError

Inherits:
Error
  • Object
show all
Defined in:
lib/pay_pro/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(param:, **kwargs) ⇒ ValidationError

Returns a new instance of ValidationError.



29
30
31
32
33
34
# File 'lib/pay_pro/errors.rb', line 29

def initialize(param:, **kwargs)
  @param = param
  kwargs[:message] = "#{kwargs[:message]}, with param: \"#{@param}\""

  super(**kwargs)
end