Sha256: 9803db5c5006c0837a3f6e6a132139eef8f8d764d368dad4b34a13389f8cb42a

Contents?: true

Size: 836 Bytes

Versions: 12

Compression:

Stored size: 836 Bytes

Contents

require 'riak/errors/base'

module Riak
  class SearchError < Error
    class IndexExistsError < SearchError
      def initialize(name)
        super t('search.index_exists', name: name)
      end
    end

    class SchemaExistsError < SearchError
      def initialize(name)
        super t('search.schema_exists', name: name)
      end
    end

    class IndexArgumentError < SearchError
      def initialize(index)
        super t('search.index_argument_error', index: index)
      end
    end

    class IndexNonExistError < SearchError
      def initialize(index)
        super t('search.index_non_exist', index: index)
      end
    end

    class UnexpectedResultError < SearchError
      def initialize(expected, actual)
        super t('search.unexpected_result', expected: expected, actual: actual)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
riak-client-2.6.0 lib/riak/errors/search_error.rb
riak-client-2.5.0 lib/riak/errors/search_error.rb
riak-client-2.4.1 lib/riak/errors/search_error.rb
riak-client-2.4.0 lib/riak/errors/search_error.rb
riak-client-2.4.0.pre1 lib/riak/errors/search_error.rb
riak-client-2.3.2 lib/riak/errors/search_error.rb
riak-client-2.3.1 lib/riak/errors/search_error.rb
riak-client-2.3.0 lib/riak/errors/search_error.rb
riak-client-2.2.2 lib/riak/errors/search_error.rb
riak-client-2.2.1 lib/riak/errors/search_error.rb
riak-client-noenc-1.0.0 lib/riak/errors/search_error.rb
riak-client-2.2.0 lib/riak/errors/search_error.rb