diff --git a/packages/specs/exceptions/src/core/Exception.ts b/packages/specs/exceptions/src/core/Exception.ts index 852c16b7a12..e4b95f2c60a 100644 --- a/packages/specs/exceptions/src/core/Exception.ts +++ b/packages/specs/exceptions/src/core/Exception.ts @@ -45,6 +45,8 @@ export class Exception extends Error { this.name = this.#getStatusConstant(); this.setOrigin(origin); + + Error.captureStackTrace(this); } setHeaders(headers: {[key: string]: any}) {