(doc, currentVersion, modifiedPaths)
| 18 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected