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

Method constructor

lib/error/setOptionError.js:92–94  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected