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

Method constructor

lib/error/invalidSchemaOption.js:16–19  ·  view source on GitHub ↗

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

(name, option)

Source from the content-addressed store, hash-verified

14 * @api private
15 */
16 constructor(name, option) {
17 const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`;
18 super(msg);
19 }
20}
21
22Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected