Exception: Mongoid::Errors::InvalidFind

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-7.3/lib/mongoid/errors/invalid_find.rb

Overview

Raised when invalid arguments are passed to #find.

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

#initializeInvalidFind

Create the new invalid find error.

Examples:

Create the error.

InvalidFind.new

Since:

  • 2.2.0



16
17
18
# File 'build/mongoid-7.3/lib/mongoid/errors/invalid_find.rb', line 16

def initialize
  super(compose_message("calling_document_find_with_nil_is_invalid", {}))
end