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

Method constructor

lib/error/setOptionError.js:90–92  ·  view source on GitHub ↗

* Error for the "errors" array in "SetOptionError" with consistent message * @param {String} key

(key)

Source from the content-addressed store, hash-verified

88 * @param {String} key
89 */
90 constructor(key) {
91 super(`"${key}" is not a valid option to set`);
92 }
93}
94
95SetOptionError.SetOptionInnerError = SetOptionInnerError;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected