Sha256: c8563dab0197b4a87813e792f05681a1c9d3a603a31746d557e0db945600fdb1

Contents?: true

Size: 667 Bytes

Versions: 16

Compression:

Stored size: 667 Bytes

Contents

module ActiveMerchant #:nodoc:
  class ActiveMerchantError < StandardError #:nodoc:
  end

  class ConnectionError < ActiveMerchantError # :nodoc:
  end

  class RetriableConnectionError < ConnectionError # :nodoc:
  end

  class ResponseError < ActiveMerchantError # :nodoc:
    attr_reader :response

    def initialize(response, message = nil)
      @response = response
      @message  = message
    end

    def to_s
      "Failed with #{response.code} #{response.message if response.respond_to?(:message)}"
    end
  end

  class ClientCertificateError < ActiveMerchantError # :nodoc
  end

  class InvalidResponseError < ActiveMerchantError # :nodoc
  end
end

Version data entries

16 entries across 15 versions & 5 rubygems

Version Path
solidus_backend-1.0.0.pre vendor/bundle/gems/activemerchant-1.44.1/lib/active_merchant/errors.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/active_utils-2.2.3/lib/active_utils/common/error.rb
tanga_active_utils-2.2.3.1 lib/active_utils/common/error.rb
tanga_active_utils-2.2.3 lib/active_utils/common/error.rb
activemerchant-1.46.0 lib/active_merchant/errors.rb
activemerchant-1.45.0 lib/active_merchant/errors.rb
aktivemerchant-2.0.0 lib/active_merchant/errors.rb
activemerchant-1.44.1 lib/active_merchant/errors.rb
activemerchant-1.44.0 lib/active_merchant/errors.rb
active_utils-2.2.3 lib/active_utils/common/error.rb
active_utils-2.2.2 lib/active_utils/common/error.rb
active_utils-2.2.1 lib/active_utils/common/error.rb
active_utils-2.2.0 lib/active_utils/common/error.rb
active_utils-2.1.1 lib/active_utils/common/error.rb
active_utils-2.1.0 lib/active_utils/common/error.rb
active_utils-2.0.2 lib/active_utils/common/error.rb