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

Method constructor

lib/error/parallelSave.js:19–22  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

17class ParallelSaveError extends MongooseError {
18
19 constructor(doc) {
20 const msg = 'Can\'t save() the same doc multiple times in parallel. Document: ';
21 super(msg + doc._doc._id);
22 }
23}
24
25Object.defineProperty(ParallelSaveError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected