MCPcopy Create free account
hub / github.com/amqp-node/amqplib / stackCapture

Function stackCapture

lib/error.js:17–20  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

15IllegalOperationError.prototype.name = 'IllegalOperationError';
16
17function stackCapture(reason) {
18 const e = new Error();
19 return `Stack capture: ${reason}\n${trimStack(e.stack, 2)}`;
20}
21
22module.exports.IllegalOperationError = IllegalOperationError;
23module.exports.stackCapture = stackCapture;

Callers 8

closeBecauseMethod · 0.85
onSocketErrorMethod · 0.85
toClosingMethod · 0.85
startHeartbeaterMethod · 0.85
channel0Function · 0.85
toClosingMethod · 0.85
closeBecauseMethod · 0.85
acceptMethod · 0.85

Calls 1

trimStackFunction · 0.85

Tested by

no test coverage detected