Sha256: 8310d0853cf6c6a68b979b7856c388bc188b1521c000cfdcbd14ca053c62dbfa

Contents?: true

Size: 1.14 KB

Versions: 21

Compression:

Stored size: 1.14 KB

Contents

module Braintree # :nodoc:
  # Super class for all Braintree exceptions.
  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

21 entries across 21 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/exceptions.rb
braintree-4.14.0 lib/braintree/exceptions.rb
braintree-4.13.0 lib/braintree/exceptions.rb
braintree-4.12.0 lib/braintree/exceptions.rb
braintree-4.11.0 lib/braintree/exceptions.rb
braintree-4.10.0 lib/braintree/exceptions.rb
braintree-4.9.0 lib/braintree/exceptions.rb
braintree-4.8.0 lib/braintree/exceptions.rb
braintree-4.7.0 lib/braintree/exceptions.rb
braintree-4.6.0 lib/braintree/exceptions.rb
braintree-4.5.0 lib/braintree/exceptions.rb
braintree-4.4.0 lib/braintree/exceptions.rb
braintree-4.3.0 lib/braintree/exceptions.rb
braintree-4.2.0 lib/braintree/exceptions.rb
braintree-4.1.0 lib/braintree/exceptions.rb
braintree-4.0.0 lib/braintree/exceptions.rb
braintree-3.4.0 lib/braintree/exceptions.rb
braintree-3.3.0 lib/braintree/exceptions.rb
braintree-3.2.0 lib/braintree/exceptions.rb
braintree-3.1.0 lib/braintree/exceptions.rb