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

Method constructor

lib/error/objectParameter.js:20–23  ·  view source on GitHub ↗
(value, paramName, fnName)

Source from the content-addressed store, hash-verified

18
19class ObjectParameterError extends MongooseError {
20 constructor(value, paramName, fnName) {
21 super('Parameter "' + paramName + '" to ' + fnName +
22 '() must be an object, got "' + (value == null ? value : value.toString()) + '" (type ' + typeof value + ')');
23 }
24}
25
26

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected