Exception: Mpp::BadRequestError

Inherits:
PaymentError 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) ⇒ 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