Exception: Workarea::Payment::CreateProfileError
- Inherits:
-
StandardError
- Object
- StandardError
- Workarea::Payment::CreateProfileError
- Defined in:
- app/errors/workarea/payment/create_profile_error.rb
Overview
Thrown when Authorize.net can’t create the payment profile for some reason. This is typically caught and hidden from erroring out to the user, instead preferring to notify the developers of the issue via a reporting service.
The web application will defer to the frontend to actually report this error to the user.
Instance Method Summary collapse
-
#initialize(message, parameters: {}) ⇒ CreateProfileError
constructor
A new instance of CreateProfileError.
Constructor Details
#initialize(message, parameters: {}) ⇒ CreateProfileError
Returns a new instance of CreateProfileError.
13 14 15 16 |
# File 'app/errors/workarea/payment/create_profile_error.rb', line 13 def initialize(, parameters: {}) @parameters = parameters super "Payment profile could not be created: #{message}" end |