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_fulfillment-1.0.0 lib/active_merchant/common/error.rb
activemerchant-1.7.0 lib/active_merchant/common/error.rb
active_fulfillment-0.10.0 lib/active_merchant/common/error.rb
activemerchant-1.6.0 lib/active_merchant/common/error.rb
active_shipping-0.9.1 lib/active_merchant/common/error.rb
bitfluent-activemerchant-1.5.1.1 lib/active_merchant/common/error.rb