Exception: Mpp::PaymentExpiredError
- Inherits:
-
PaymentError
- Object
- StandardError
- PaymentError
- Mpp::PaymentExpiredError
- Extended by:
- T::Sig
- Defined in:
- lib/mpp/errors.rb
Instance Method Summary collapse
-
#initialize(expires: nil) ⇒ PaymentExpiredError
constructor
A new instance of PaymentExpiredError.
Methods inherited from PaymentError
inherited, #status, #title, #to_problem_details, #type
Constructor Details
#initialize(expires: nil) ⇒ PaymentExpiredError
Returns a new instance of PaymentExpiredError.
129 130 131 132 |
# File 'lib/mpp/errors.rb', line 129 def initialize(expires: nil) msg = expires ? "Payment expired at #{expires}." : "Payment has expired." super(msg) end |