MCPcopy Create free account
hub / github.com/TruthHun/BookStack / OperationalError

Function OperationalError

static/word2md/mammoth.browser.js:5727–5742  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

5725};
5726
5727function OperationalError(message) {
5728 if (!(this instanceof OperationalError))
5729 return new OperationalError(message);
5730 notEnumerableProp(this, "name", "OperationalError");
5731 notEnumerableProp(this, "message", message);
5732 this.cause = message;
5733 this["isOperational"] = true;
5734
5735 if (message instanceof Error) {
5736 notEnumerableProp(this, "message", message.message);
5737 notEnumerableProp(this, "stack", message.stack);
5738 } else if (Error.captureStackTrace) {
5739 Error.captureStackTrace(this, this.constructor);
5740 }
5741
5742}
5743inherits(OperationalError, Error);
5744
5745var errorTypes = Error["__BluebirdErrorTypes__"];

Callers

nothing calls this directly

Calls 1

notEnumerablePropFunction · 0.70

Tested by

no test coverage detected