Exception: Mongoid::Errors::InvalidFind

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



14
15
16
# File 'lib/mongoid/errors/invalid_find.rb', line 14

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