Skip to content

Commit

Permalink
docs(common): remove incorrect constructor signature of HttpException
Browse files Browse the repository at this point in the history
HttpException cannot be instantiated with zero arguments. The provided first example is misleading.
  • Loading branch information
kalmanbendeguz committed Feb 17, 2024
1 parent 033f181 commit f793e2a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/common/exceptions/http.exception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit f793e2a

Please sign in to comment.