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

Method constructor

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

Source from the content-addressed store, hash-verified

16class MissingSchemaError extends MongooseError {
17
18 constructor(name) {
19 const msg = 'Schema hasn\'t been registered for model "' + name + '".\n'
20 + 'Use mongoose.model(name, schema)';
21 super(msg);
22 }
23}
24
25Object.defineProperty(MissingSchemaError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected