Class | Mongoid::Errors::Validations |
In: |
lib/mongoid/errors/validations.rb
|
Parent: | MongoidError |
Raised when a persistence method ending in ! fails validation. The message will contain the full error messages from the Document in question.
@example Create the error.
Validations.new(person.errors)
document | [R] |