Exception: Mongoid::Errors::InvalidFind

Inherits:
MongoidError
  • Object
show all
Defined in:
build/mongoid-7.4/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


13
14
15
# File 'build/mongoid-7.4/lib/mongoid/errors/invalid_find.rb', line 13

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