Exception: Mpp::PaymentExpiredError

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(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