Put in order · NestJS course · Module 2: Routing and Request Lifecycle
Exception Filter Binding Levels
Order the Exception Filter binding levels from the narrowest to the widest scope:
Items to put in order
- Method (@UseFilters on a method)
- Global (app.useGlobalFilters)
- Controller (@UseFilters on a class)
Show the answer
Correct order:
- Method (@UseFilters on a method)
- Controller (@UseFilters on a class)
- Global (app.useGlobalFilters)