Sha256: 68b4b08ab8d6cbdb34fddfbbec1efe9ca25caff73b9a1fa53bbade37ba36f7e5

Contents?: true

Size: 637 Bytes

Versions: 3

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

module Workarea
  class Payment
    # 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.
    class CreateProfileError < StandardError
      def initialize(message, parameters: {})
        @parameters = parameters
        super "Payment profile could not be created: #{message}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-authorize_cim-2.1.3 app/errors/workarea/payment/create_profile_error.rb
workarea-authorize_cim-2.1.2 app/errors/workarea/payment/create_profile_error.rb
workarea-authorize_cim-2.1.1 app/errors/workarea/payment/create_profile_error.rb