123456789101112131415161718192021222324252627282930313233 |
- 'use strict';
-
-
-
- const MongooseError = require('./');
-
-
-
- function ParallelSaveError(doc) {
- const msg = 'Can\'t save() the same doc multiple times in parallel. Document: ';
- MongooseError.call(this, msg + doc.id);
- this.name = 'ParallelSaveError';
- }
-
-
-
- ParallelSaveError.prototype = Object.create(MongooseError.prototype);
- ParallelSaveError.prototype.constructor = MongooseError;
-
-
-
- module.exports = ParallelSaveError;
|