Exception: Mpp::PaymentInsufficientError
- Inherits:
-
PaymentError
- Object
- StandardError
- PaymentError
- Mpp::PaymentInsufficientError
- Extended by:
- T::Sig
- Defined in:
- lib/mpp/errors.rb
Instance Method Summary collapse
-
#initialize(reason: nil) ⇒ PaymentInsufficientError
constructor
A new instance of PaymentInsufficientError.
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 |