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

Method constructor

lib/error/objectParameter.js:19–22  ·  view source on GitHub ↗

* Constructor for errors that happen when a parameter that's expected to be * an object isn't an object * * @param {Any} value * @param {String} paramName * @param {String} fnName * @api private

(value, paramName, fnName)

Source from the content-addressed store, hash-verified

17 * @api private
18 */
19 constructor(value, paramName, fnName) {
20 super('Parameter "' + paramName + '" to ' + fnName +
21 '() must be an object, got "' + value.toString() + '" (type ' + typeof value + ')');
22 }
23}
24
25

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected