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

Method constructor

lib/error/overwriteModel.js:18–20  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

16class OverwriteModelError extends MongooseError {
17
18 constructor(name) {
19 super('Cannot overwrite `' + name + '` model once compiled.');
20 }
21}
22
23Object.defineProperty(OverwriteModelError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected