API exemple avec collection MongoDB étudiants
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
639 B

'use strict';
/*!
* Module dependencies.
*/
const MongooseError = require('./mongooseError');
/**
* ParallelValidate Error constructor.
*
* @inherits MongooseError
* @api private
*/
function ParallelValidateError(doc) {
const msg = 'Can\'t validate() the same doc multiple times in parallel. Document: ';
MongooseError.call(this, msg + doc._id);
this.name = 'ParallelValidateError';
}
/*!
* Inherits from MongooseError.
*/
ParallelValidateError.prototype = Object.create(MongooseError.prototype);
ParallelValidateError.prototype.constructor = MongooseError;
/*!
* exports
*/
module.exports = ParallelValidateError;