Skip to content

Commit 74540fe

Browse files
Merge pull request #2591 from janmonterrubio/patch-1
docs Update exception-filters docs with caveats when using Catch All filter
2 parents 188c966 + 8fa89af commit 74540fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/exception-filters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ export class AllExceptionsFilter implements ExceptionFilter {
347347
}
348348
```
349349

350+
> warning **Warning** When combining an exception filter that catches everything with a filter that is bound to a specific type, the "Catch anything" filter should be declared first to allow the specific filter to correctly handle the bound type.
351+
350352
#### Inheritance
351353

352354
Typically, you'll create fully customized exception filters crafted to fulfill your application requirements. However, there might be use-cases when you would like to simply extend the built-in default **global exception filter**, and override the behavior based on certain factors.

0 commit comments

Comments
 (0)