Sha256: 5170a857582fb0d8902ec26ec207245018c126f481d97bbd889cf2f0f975d422

Contents?: true

Size: 1.08 KB

Versions: 8

Compression:

Stored size: 1.08 KB

Contents

module Braintree
  class BraintreeError < ::StandardError; end

  class AuthenticationError < BraintreeError; end

  class AuthorizationError < BraintreeError; end

  class ConfigurationError < BraintreeError; end

  class GatewayTimeoutError < BraintreeError; end

  class InvalidSignature < BraintreeError; end

  class InvalidChallenge < BraintreeError; end

  class NotFoundError < BraintreeError; end

  class RequestTimeoutError < BraintreeError; end

  class ServerError < BraintreeError; end

  class ServiceUnavailableError < BraintreeError; end

  class SSLCertificateError < BraintreeError; end

  class TooManyRequestsError < BraintreeError; end

  class UnexpectedError < BraintreeError; end

  class UpgradeRequiredError < BraintreeError; end

  class ValidationsFailed < BraintreeError
    attr_reader :error_result

    def initialize(error_result)
      @error_result = error_result
    end

    def inspect
      "#<#{self.class} error_result: #{@error_result.inspect}>"
    end

    def to_s
      inspect
    end
  end

  class TestOperationPerformedInProduction < BraintreeError; end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/exceptions.rb
braintree-4.22.0 lib/braintree/exceptions.rb
braintree-4.21.0 lib/braintree/exceptions.rb
braintree-4.20.0 lib/braintree/exceptions.rb
braintree-4.19.0 lib/braintree/exceptions.rb
braintree-4.18.0 lib/braintree/exceptions.rb
braintree-4.17.0 lib/braintree/exceptions.rb
braintree-4.16.0 lib/braintree/exceptions.rb