Class Mongoid::Errors::DocumentNotFound
In: lib/mongoid/errors/document_not_found.rb
Parent: MongoidError

Raised when querying the database for a document by a specific id which does not exist. If multiple ids were passed then it will display all of those.

@example Create the error.

  DocumentNotFound.new(Person, ["1", "2"])

Methods

new  

Attributes

identifiers  [R] 
klass  [R] 

Public Class methods

[Validate]