Exception: Mpp::PaymentMethodUnsupportedError

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(method: nil) ⇒ PaymentMethodUnsupportedError

Returns a new instance of PaymentMethodUnsupportedError.



175
176
177
178
# File 'lib/mpp/errors.rb', line 175

def initialize(method: nil)
  msg = method ? "Payment method \"#{method}\" is not supported." : "Payment method is not supported."
  super(msg)
end