NestJS · Senior · Question 58 of 75
What's the effect of throwing inside an interceptor's map operator?
- ✓Correct answer: The error flows through the Observable and reaches exception filters like any handler error
- 2It's silently ignored
- 3It crashes the process
Explanation
Use catchError in interceptors to map errors, e.g. converting domain errors into HTTP exceptions.