Exception: Mongoid::Errors::CriteriaArgumentRequired
- Inherits:
-
MongoidError
- Object
- StandardError
- MongoidError
- Mongoid::Errors::CriteriaArgumentRequired
- Defined in:
- lib/mongoid/errors/criteria_argument_required.rb
Overview
This error is raised when a method on Criteria is given a nil argument.
Constant Summary
Constants inherited from MongoidError
Instance Attribute Summary
Attributes inherited from MongoidError
#problem, #resolution, #summary
Instance Method Summary collapse
-
#initialize(query_method) ⇒ CriteriaArgumentRequired
constructor
private
Creates the new exception instance.
Methods inherited from MongoidError
Constructor Details
#initialize(query_method) ⇒ CriteriaArgumentRequired
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 new exception instance.
13 14 15 16 |
# File 'lib/mongoid/errors/criteria_argument_required.rb', line 13 def initialize(query_method) super(("criteria_argument_required", query_method: query_method)) end |