Skip to content

Commit 6a46e49

Browse files
Update content/exception-filters.md
1 parent 398cb6f commit 6a46e49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/exception-filters.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export class HttpExceptionFilter {
183183
> info **Hint** All exception filters should implement the generic `ExceptionFilter<T>` interface. This requires you to provide the `catch(exception: T, host: ArgumentsHost)` method with its indicated signature. `T` indicates the type of the exception.
184184
185185
> warning **Warning** If you are using `@nestjs/platform-fastify` you can use `response.send()` instead of `response.json()`. Don't forget to import the correct types from `fastify`.
186+
186187
The `@Catch(HttpException)` decorator binds the required metadata to the exception filter, telling Nest that this particular filter is looking for exceptions of type `HttpException` and nothing else. The `@Catch()` decorator may take a single parameter, or a comma-separated list. This lets you set up the filter for several types of exceptions at once.
187188

188189
#### Arguments host

0 commit comments

Comments
 (0)