Exception: MongoMapper::DocumentNotValid
- Inherits:
-
MongoMapperError
- Object
- StandardError
- MongoMapperError
- MongoMapper::DocumentNotValid
- Defined in:
- lib/mongo_mapper.rb
Overview
raised when document not valid and using !
Instance Method Summary collapse
-
#initialize(document) ⇒ DocumentNotValid
constructor
A new instance of DocumentNotValid.
Constructor Details
#initialize(document) ⇒ DocumentNotValid
Returns a new instance of DocumentNotValid.
17 18 19 |
# File 'lib/mongo_mapper.rb', line 17 def initialize(document) super("Validation failed: #{document.errors..join(", ")}") end |