Sha256: 79cb94c73d193175c42f0675c20e434045172f08f4be2ae1395660fd85f97f22

Contents?: true

Size: 1.4 KB

Versions: 39

Compression:

Stored size: 1.4 KB

Contents

module Rudy
  module AWS
    class SDB

      class Error < RuntimeError ; end

      class RequestError < Error
        attr_reader :request_id

        def initialize(message, request_id=nil)
          super(message)
          @request_id = request_id
        end
      end

      class InvalidDomainNameError < RequestError ; end
      class InvalidParameterValueError < RequestError ; end
      class InvalidNextTokenError < RequestError ; end
      class InvalidNumberPredicatesError < RequestError ; end
      class InvalidNumberValueTestsError < RequestError ; end
      class InvalidQueryExpressionError < RequestError ; end
      class MissingParameterError < RequestError ; end
      class NoSuchDomainError < RequestError ; end
      class NumberDomainsExceededError < RequestError ; end
      class NumberDomainAttributesExceededError < RequestError ; end
      class NumberDomainBytesExceededError < RequestError ; end
      class NumberItemAttributesExceededError < RequestError ; end
      class RequestTimeoutError < RequestError ; end

      class FeatureDeprecatedError < RequestError ; end

      class ConnectionError < Rudy::Error
        attr_reader :response

        def initialize(response)
          super(
            "#{response.code} \
             #{response.message if response.respond_to?(:message)}"
          )
          @response = response
        end
        
      end
      
    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
sabat-rudy-0.8.0 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.0 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.1 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.2 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.3 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.4 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.5 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.7.6 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.0 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.1 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.2 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.3 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.4 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.8.5 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.9.0 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.9.1 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.9.2 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.9.3 lib/rudy/aws/sdb/error.rb
solutious-rudy-0.9.4 lib/rudy/aws/sdb/error.rb
rudy-0.9.5.004 lib/rudy/aws/sdb/error.rb