Exception: Mpp::InvalidChallengeError

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(challenge_id: nil, reason: nil) ⇒ InvalidChallengeError

Returns a new instance of InvalidChallengeError.



108
109
110
111
112
# File 'lib/mpp/errors.rb', line 108

def initialize(challenge_id: nil, reason: nil)
  id_part = challenge_id ? " \"#{challenge_id}\"" : ""
  reason_part = reason ? ": #{reason}" : ""
  super("Challenge#{id_part} is invalid#{reason_part}.")
end