MCPcopy Create free account
hub / github.com/Automattic/mongoose / constructor

Method constructor

lib/error/parallelSave.js:16–19  ·  view source on GitHub ↗

* ParallelSave Error constructor. * * @param {Document} doc * @api private

(doc)

Source from the content-addressed store, hash-verified

14 * @api private
15 */
16 constructor(doc) {
17 const msg = 'Can\'t save() the same doc multiple times in parallel. Document: ';
18 super(msg + doc._id);
19 }
20}
21
22Object.defineProperty(ParallelSaveError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected