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:

  1. Method (@UseFilters on a method)
  2. Controller (@UseFilters on a class)
  3. Global (app.useGlobalFilters)