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

Method constructor

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

Source from the content-addressed store, hash-verified

354 // Arrange
355 class OperationalError extends Error {
356 constructor(message) {
357 super(message);
358 }
359 }
360
361 const err = new OperationalError('Something bad happened.');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected