Sha256: 4d9ed2da378339ae2e2fa3a7b37e957c1a9bba91b1d3bdcda56bd45b2532b290

Contents?: true

Size: 621 Bytes

Versions: 14

Compression:

Stored size: 621 Bytes

Contents

# frozen_string_literal: true
# encoding: utf-8

module Mongoid
  module Errors

    class InvalidEstimatedCountCriteria < MongoidError

      # Creates the exception raised when trying to call estimated_count
      # on a filtered criteria.
      #
      # @param [ String ] class_name The klass of the criteria used to call
      #                              estimated count.
      #
      # @api private
      def initialize(class_name)
        super(
          compose_message(
            "invalid_estimated_count_criteria",
            { class_name: class_name }
          )
        )
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongoid-7.3.5 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.3.4 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.6 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.3.3 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.3.2 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.5 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.4 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.3.1 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.3.0 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.3 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.2 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.1 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.0 lib/mongoid/errors/invalid_estimated_count_criteria.rb
mongoid-7.2.0.rc1 lib/mongoid/errors/invalid_estimated_count_criteria.rb