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

Method constructor

lib/error/invalidSchemaOption.js:18–21  ·  view source on GitHub ↗
(name, option)

Source from the content-addressed store, hash-verified

16class InvalidSchemaOptionError extends MongooseError {
17
18 constructor(name, option) {
19 const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`;
20 super(msg);
21 }
22}
23
24Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected