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

Catch-All Exception Filter

How do you create an exception filter that catches ALL exception types (not just HttpException)?

Answer options

  • @Catch(HttpException)
  • @Catch(AllExceptions)
  • @Catch() with no arguments
  • @CatchAll()
Show the answer

Correct answer:

  • @Catch() with no arguments