Exception: Mongoid::Errors::InvalidFind

Inherits:
MongoidError 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

#translate

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(translate("calling_document_find_with_nil_is_invalid", {}))
end