Exception: Mpp::PaymentRequiredError

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(realm: nil, description: nil) ⇒ PaymentRequiredError

Returns a new instance of PaymentRequiredError.



86
87
88
89
90
91
# File 'lib/mpp/errors.rb', line 86

def initialize(realm: nil, description: nil)
  parts = ["Payment is required"]
  parts << "for \"#{realm}\"" if realm
  parts << "(#{description})" if description
  super("#{parts.join(" ")}.")
end