NestJS · Senior · Question 58 of 75

What's the effect of throwing inside an interceptor's map operator?

Explanation

Use catchError in interceptors to map errors, e.g. converting domain errors into HTTP exceptions.

Further reading

Problem with a question

NestJS · Senior · question 58

Test yourself

Take the NestJS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz