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

Method constructor

lib/error/version.js:20–26  ·  view source on GitHub ↗
(doc, currentVersion, modifiedPaths)

Source from the content-addressed store, hash-verified

18class VersionError extends MongooseError {
19
20 constructor(doc, currentVersion, modifiedPaths) {
21 const modifiedPathsStr = modifiedPaths.join(', ');
22 super('No matching document found for id "' + doc._doc._id +
23 '" version ' + currentVersion + ' modifiedPaths "' + modifiedPathsStr + '"');
24 this.version = currentVersion;
25 this.modifiedPaths = modifiedPaths;
26 }
27}
28
29

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected