Sha256: ce0308fd868a9bc01c56d02489a8ab5ff47486ede5d93edce692c4af188a7c02

Contents?: true

Size: 583 Bytes

Versions: 8

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

module SolidusBacktracs
  class Error < StandardError; end

  class OrderNotPaidError < Error
    def initialize(order, *args)
      super("Order #{order.number} is not paid and capture_at_notification is false", *args)
    end
  end

  class ShipmentNotFoundError < Error
    def initialize(shipment_number, *args)
      super("Could not find shipment with number #{shipment_number}", *args)
    end
  end

  class PaymentError < Error
    def initialize(payment, *args)
      super("Could not process payment #{payment.id}", *args)
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
solidus_bactracs-3.0.0 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.6 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.5 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.4 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.3 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.2 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.1 lib/solidus_backtracs/errors.rb
solidus_backtracs-2.2.0 lib/solidus_backtracs/errors.rb