Question · NestJS course · Module 6: Error Handling and Monitoring

Custom Exception Inheritance

Which class should a base Custom Exception class extend?

Answer options

  • HttpException
  • NestException
  • RuntimeException
  • Error (built-in JavaScript class)

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