Click in order · NestJS course · Module 6: Error Handling and Monitoring

Global Exception Filter Registration

Arrange the steps for registering a global Exception Filter in main.ts

Items to click

  • app.useGlobalFilters(
  • );
  • new LegionHttpExceptionFilter()
  • const app = await NestFactory.create(AppModule);

You can check the correct answer by solving this task in the CodeWorlds game.