Sha256: ef5e6611ea6a1af054cb6729e89198cbdf490539d39ef2e64fdbaf5e16105df4

Contents?: true

Size: 600 Bytes

Versions: 8

Compression:

Stored size: 600 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

8 entries across 8 versions & 1 rubygems

Version Path
active_utils-2.0.1 lib/active_utils/common/error.rb
active_utils-2.0.0 lib/active_utils/common/error.rb
active_utils-1.0.5 lib/active_utils/common/error.rb
active_utils-1.0.4 lib/active_utils/common/error.rb
active_utils-1.0.3 lib/active_utils/common/error.rb
active_utils-1.0.2 lib/active_utils/common/error.rb
active_utils-1.0.1 lib/active_utils/common/error.rb
active_utils-1.0.0 lib/active_utils/common/error.rb