In this guide we learn about Angular HTTP Error Handling. We use HTTP Interceptor to catch the HTTP Errors. The HTTP Interceptors catches all the error arising out of the HTTP Requests using the catchError operator. You can then properly handle the error or re throw it back to the subscriber using the throwError operator.
Angular Error Handling
In this tutorial, we look at how error handling works in Angular. We also learn how to create a Global Error handler or custom error handler in Angular. We learn why we need to handle errors and some of the best practices. In the end we will learn few tips like how to Inject services to global error handler, How to show user notification page etc.