Exception: Mongoid::Errors::InvalidEstimatedCountCriteria
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::InvalidEstimatedCountCriteria
- Defined in:
- lib/mongoid/errors/invalid_estimated_count_criteria.rb
Overview
This error is raised when trying to call estimated_count on a filtered criteria.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(class_name) ⇒ InvalidEstimatedCountCriteria
constructor
private
Creates the exception.
Methods inherited from MongoidError
Constructor Details
#initialize(class_name) ⇒ InvalidEstimatedCountCriteria
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates the exception.
17 18 19 20 21 22 23 24 |
# File 'lib/mongoid/errors/invalid_estimated_count_criteria.rb', line 17 def initialize(class_name) super( ( "invalid_estimated_count_criteria", { class_name: class_name } ) ) end |