Question · NestJS course · Module 2: Routing and Request Lifecycle

Exception Filters in the Request Lifecycle

At which stage of the Request Lifecycle can Exception Filters take action?

Answer options

  • Only after the Route Handler
  • Only after the Pipe
  • At any stage - they catch errors from Guards, Pipes, Handlers, and Interceptors
  • Only before Middleware
Show the answer

Correct answer:

  • At any stage - they catch errors from Guards, Pipes, Handlers, and Interceptors