Angular · Senior · Question 43 of 75

How do you centrally report uncaught errors in an Angular app?

Explanation

{ provide: ErrorHandler, useClass: SentryErrorHandler } receives errors from templates, lifecycle hooks and event handlers. HTTP errors are better handled in interceptors.

Further reading

Problem with a question

Angular · Senior · question 43

Test yourself

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

Take this quiz