Exception: Mpp::MalformedCredentialError

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) ⇒ MalformedCredentialError

Returns a new instance of MalformedCredentialError.



98
99
100
101
# File 'lib/mpp/errors.rb', line 98

def initialize(reason: nil)
  msg = reason ? "Credential is malformed: #{reason}." : "Credential is malformed."
  super(msg)
end