Exception: Mongoid::Errors::CriteriaArgumentRequired

Inherits:
MongoidError
  • Object
show all
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

MongoidError::BASE_KEY

Instance Attribute Summary

Attributes inherited from MongoidError

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from MongoidError

#compose_message

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(compose_message("criteria_argument_required",
    query_method: query_method))
end