Coding task · NestJS course · Module 2: Routing and Request Lifecycle

Catch-All Exception Filter

Create a filter that catches all exceptions.

Task

Write an AllExceptionsFilter with @Catch() (no arguments) that handles both HttpException and other errors