Skip to content

Commit 0ea5584

Browse files
Update content/exception-filters.md
1 parent 1bbd483 commit 0ea5584

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

content/exception-filters.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ in the `response` argument. To override the entire JSON response body, pass an o
6060
The second constructor argument - `status` - should be a valid HTTP status code.
6161
Best practice is to use the `HttpStatus` enum imported from `@nestjs/common`.
6262

63-
There is a **third** constructor argument (optional) - `options` - That can be used to provide an error [cause](https://nodejs.org/en/blog/release/v16.9.0/#error-cause). This `cause` object is not serialized into the response object, but it can be useful for logging purposes, providing valuable information about the inner error that caused the HttpException to be thrown.
64-
63+
There is a **third** constructor argument (optional) - `options` - that can be used to provide an error [cause](https://nodejs.org/en/blog/release/v16.9.0/#error-cause). This `cause` object is not serialized into the response object, but it can be useful for logging purposes, providing valuable information about the inner error that caused the `HttpException` to be thrown.
6564

6665
Here's an example overriding the entire response body and providing an error cause:
6766

0 commit comments

Comments
 (0)