Angular runs some of the most high-use, complex, and critical applications in production today. Some high-profile examples include GitHub, Google, and Adobe. By default, Angular provides some basic error handling, however, creating a robust system for handling Angular errors is up to the application developers.
Some of the most widely-used built-in classes and options for handling Angular errors include:
ErrorHandler - likely the most “labor-intensive” way to handle errors. This class must be deployed across the entire codebase, and is very hard to maintain.
Snack Bar - more geared towards the end-user. This is a built in system for displaying error messages to a user so they understand something went wrong. A good alternative to simply printing errors to console.
httpInterceptor - this option is best for implementing an application-wide error handling system. Everything can be logged from one central location.