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

Method constructor

lib/error/missingSchema.js:16–20  ·  view source on GitHub ↗

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

(name)

Source from the content-addressed store, hash-verified

14 * @api private
15 */
16 constructor(name) {
17 const msg = 'Schema hasn\'t been registered for model "' + name + '".\n'
18 + 'Use mongoose.model(name, schema)';
19 super(msg);
20 }
21}
22
23Object.defineProperty(MissingSchemaError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected