Sha256: 087e91817cebb3fc5ba1fc6ac48c62e2a196e19854f61621ffa30afff653c17d

Contents?: true

Size: 836 Bytes

Versions: 89

Compression:

Stored size: 836 Bytes

Contents

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

  class ConnectionError < ActiveMerchantError # :nodoc:
    attr_reader :triggering_exception

    def initialize(message, triggering_exception)
      super(message)
      @triggering_exception = triggering_exception
    end
  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

89 entries across 89 versions & 5 rubygems

Version Path
activemerchant-1.126.0 lib/active_merchant/errors.rb
activemerchant-1.125.0 lib/active_merchant/errors.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/errors.rb
activemerchant-1.124.0 lib/active_merchant/errors.rb
activemerchant-1.123.0 lib/active_merchant/errors.rb
activemerchant-1.121.0 lib/active_merchant/errors.rb
activemerchant-1.120.0 lib/active_merchant/errors.rb
activemerchant-1.119.0 lib/active_merchant/errors.rb
activemerchant-1.118.0 lib/active_merchant/errors.rb
activemerchant-1.117.0 lib/active_merchant/errors.rb
activemerchant-1.116.0 lib/active_merchant/errors.rb
activemerchant-1.114.0 lib/active_merchant/errors.rb
activemerchant-1.113.0 lib/active_merchant/errors.rb
activemerchant-1.112.0 lib/active_merchant/errors.rb
activemerchant-1.111.0 lib/active_merchant/errors.rb
activemerchant-1.110.0 lib/active_merchant/errors.rb
activemerchant-1.109.0 lib/active_merchant/errors.rb
activemerchant-1.108.0 lib/active_merchant/errors.rb
activemerchant-1.107.4 lib/active_merchant/errors.rb
activemerchant-1.107.3 lib/active_merchant/errors.rb