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

Method constructor

test/utils.test.js:340–342  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

338 // Arrange
339 class OperationalError extends Error {
340 constructor(message) {
341 super(message);
342 }
343 }
344
345 const err = new OperationalError('Something bad happened.');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected