Exception: Mpp::BadRequestError
- Inherits:
-
PaymentError
- Object
- StandardError
- PaymentError
- Mpp::BadRequestError
- Extended by:
- T::Sig
- Defined in:
- lib/mpp/errors.rb
Instance Method Summary collapse
-
#initialize(reason: nil) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Methods inherited from PaymentError
inherited, #status, #title, #to_problem_details, #type
Constructor Details
#initialize(reason: nil) ⇒ BadRequestError
Returns a new instance of BadRequestError.
151 152 153 154 |
# File 'lib/mpp/errors.rb', line 151 def initialize(reason: nil) msg = reason ? "Bad request: #{reason}." : "Bad request." super(msg) end |