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

Method constructor

lib/error/parallelValidate.js:17–20  ·  view source on GitHub ↗

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

(doc)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected