Exception: Mpp::InvalidChallengeError
- Inherits:
-
PaymentError
- Object
- StandardError
- PaymentError
- Mpp::InvalidChallengeError
- Extended by:
- T::Sig
- Defined in:
- lib/mpp/errors.rb
Instance Method Summary collapse
-
#initialize(challenge_id: nil, reason: nil) ⇒ InvalidChallengeError
constructor
A new instance of InvalidChallengeError.
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 |