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

Method constructor

lib/error/version.js:18–24  ·  view source on GitHub ↗

* Version Error constructor. * * @param {Document} doc * @param {Number} currentVersion * @param {Array } modifiedPaths * @api private

(doc, currentVersion, modifiedPaths)

Source from the content-addressed store, hash-verified

16 * @api private
17 */
18 constructor(doc, currentVersion, modifiedPaths) {
19 const modifiedPathsStr = modifiedPaths.join(', ');
20 super('No matching document found for id "' + doc._id +
21 '" version ' + currentVersion + ' modifiedPaths "' + modifiedPathsStr + '"');
22 this.version = currentVersion;
23 this.modifiedPaths = modifiedPaths;
24 }
25}
26
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected