Sha256: a39a438ccf6edf456903fc6df286b5e955e8c4385f7febee37fca47ed6e0301e

Contents?: true

Size: 609 Bytes

Versions: 66

Compression:

Stored size: 609 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
end

Version data entries

66 entries across 66 versions & 16 rubygems

Version Path
active_shipping-0.9.9 lib/active_merchant/common/error.rb
activemerchant-abn-ideal-1.7.0c lib/active_merchant/common/error.rb
activemerchant-abn-ideal-1.7.0b lib/active_merchant/common/error.rb
active_shipping-0.9.8 lib/active_merchant/common/error.rb
activemerchant-1.11.0 lib/active_merchant/common/error.rb
active_fulfillment-1.0.3 lib/active_merchant/common/error.rb
activemerchant-1.10.0 lib/active_merchant/common/error.rb
active_shipping-0.9.7 lib/active_merchant/common/error.rb
active_fulfillment-1.0.2 lib/active_merchant/common/error.rb
active_shipping-0.9.6 lib/active_merchant/common/error.rb
active_shipping-0.9.5 lib/active_merchant/common/error.rb
activemerchant-1.9.4 lib/active_merchant/common/error.rb
active_fulfillment-1.0.1 lib/active_merchant/common/error.rb
active_shipping-0.9.4 lib/active_merchant/common/error.rb
activemerchant-1.9.3 lib/active_merchant/common/error.rb
activemerchant-1.9.2 lib/active_merchant/common/error.rb
n8_activemerchant-1.9.3 lib/active_merchant/common/error.rb
maedana-activemerchant-1.9.1.1 lib/active_merchant/common/error.rb
activemerchant-1.9.1 lib/active_merchant/common/error.rb
activemerchant-1.9.0 lib/active_merchant/common/error.rb