Exception: Mpp::PaymentInsufficientError

Inherits:
PaymentError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mpp/errors.rb

Instance Method Summary collapse

Methods inherited from PaymentError

inherited, #status, #title, #to_problem_details, #type

Constructor Details

#initialize(reason: nil) ⇒ PaymentInsufficientError

Returns a new instance of PaymentInsufficientError.



161
162
163
164
# File 'lib/mpp/errors.rb', line 161

def initialize(reason: nil)
  msg = reason ? "Payment insufficient: #{reason}." : "Payment amount is insufficient."
  super(msg)
end