Sha256: 402760c055da34c8536bbeeca660f9d50c86f65d7dc4281d776687a0541db94b

Contents?: true

Size: 1.09 KB

Versions: 50

Compression:

Stored size: 1.09 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 DownForMaintenanceError < BraintreeError; end

  class ForgedQueryString < BraintreeError; end

  class InvalidSignature < BraintreeError; end

  class InvalidChallenge < BraintreeError; end

  class NotFoundError < BraintreeError; end

  class ServerError < 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

50 entries across 50 versions & 1 rubygems

Version Path
braintree-2.104.1 lib/braintree/exceptions.rb
braintree-2.104.0 lib/braintree/exceptions.rb
braintree-2.103.0 lib/braintree/exceptions.rb
braintree-2.102.0 lib/braintree/exceptions.rb
braintree-2.101.0 lib/braintree/exceptions.rb
braintree-2.100.0 lib/braintree/exceptions.rb
braintree-2.99.0 lib/braintree/exceptions.rb
braintree-2.98.0 lib/braintree/exceptions.rb
braintree-2.97.0 lib/braintree/exceptions.rb
braintree-2.96.0 lib/braintree/exceptions.rb
braintree-2.95.0 lib/braintree/exceptions.rb
braintree-2.94.0 lib/braintree/exceptions.rb
braintree-2.93.0 lib/braintree/exceptions.rb
braintree-2.92.0 lib/braintree/exceptions.rb
braintree-2.91.0 lib/braintree/exceptions.rb
braintree-2.90.0 lib/braintree/exceptions.rb
braintree-2.89.0 lib/braintree/exceptions.rb
braintree-2.88.0 lib/braintree/exceptions.rb
braintree-2.87.0 lib/braintree/exceptions.rb
braintree-2.86.0 lib/braintree/exceptions.rb