From f793e2a1d2ec64207ba152e8eec4deebb56c408f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bendeg=C3=BAz=20K=C3=A1lm=C3=A1n?= Date: Sat, 17 Feb 2024 16:36:37 +0100 Subject: [PATCH] docs(common): remove incorrect constructor signature of HttpException HttpException cannot be instantiated with zero arguments. The provided first example is misleading. --- packages/common/exceptions/http.exception.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/common/exceptions/http.exception.ts b/packages/common/exceptions/http.exception.ts index 2192c5f3617..111a1f72a5e 100644 --- a/packages/common/exceptions/http.exception.ts +++ b/packages/common/exceptions/http.exception.ts @@ -28,7 +28,6 @@ export class HttpException extends Error { * Instantiate a plain HTTP Exception. * * @example - * throw new HttpException() * throw new HttpException('message', HttpStatus.BAD_REQUEST) * throw new HttpException('custom message', HttpStatus.BAD_REQUEST, { * cause: new Error('Cause Error'),