(doc)
| 17 | class 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 | |
| 25 | Object.defineProperty(ParallelSaveError.prototype, 'name', { |
nothing calls this directly
no outgoing calls
no test coverage detected