Exception: Workarea::Payment::CreateProfileError

Inherits:
StandardError
  • Object
show all
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

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(message, parameters: {})
  @parameters = parameters
  super "Payment profile could not be created: #{message}"
end