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
rclements_active_shipping-0.9.15 lib/active_merchant/common/error.rb
rclements_active_shipping-0.9.14 lib/active_merchant/common/error.rb
rclements_active_shipping-0.9.13 lib/active_merchant/common/error.rb
activemerchant-1.17.0 lib/active_merchant/common/error.rb
yetanothernguyen-activemerchant-1.16.0 lib/active_merchant/common/error.rb
activemerchant-1.16.0 lib/active_merchant/common/error.rb
gonow-activemerchant-1.15.0 lib/active_merchant/common/error.rb
bitfluent-activemerchant-1.15.1 lib/active_merchant/common/error.rb
activemerchant-kiddy-1.15.0.kiddy.1 lib/active_merchant/common/error.rb
activemerchant-kiddy-1.15.0.kiddy lib/active_merchant/common/error.rb
benhutton-active_shipping-0.9.13 lib/active_merchant/common/error.rb
activemerchant-1.15.0 lib/active_merchant/common/error.rb
activemerchant-1.14.0 lib/active_merchant/common/error.rb
active_shipping-0.9.13 lib/active_merchant/common/error.rb
active_shipping-0.9.12 lib/active_merchant/common/error.rb
activemerchant-1.13.0 lib/active_merchant/common/error.rb
active_shipping-0.9.11 lib/active_merchant/common/error.rb
activemerchant-1.12.1 lib/active_merchant/common/error.rb
active_shipping-0.9.10 lib/active_merchant/common/error.rb
activemerchant-1.12.0 lib/active_merchant/common/error.rb