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

Method constructor

lib/error/overwriteModel.js:17–19  ·  view source on GitHub ↗

* OverwriteModel Error constructor. * @param {String} name * @api private

(name)

Source from the content-addressed store, hash-verified

15 * @api private
16 */
17 constructor(name) {
18 super('Cannot overwrite `' + name + '` model once compiled.');
19 }
20}
21
22Object.defineProperty(OverwriteModelError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected