Handling Application Errors
Learn how to handle runtime errors in an Angular application.
We'll cover the following...
The most usual runtime errors in an Angular application come from the interaction with an HTTP API. Entering the wrong login credentials or sending data in the wrong format can result in an HTTP error. An Angular application can handle HTTP errors in the following ways:
Explicitly during the execution of a particular HTTP request
Globally in the global error handler of the application
Centrally using an HTTP interceptor
In the following section, we will explore how to handle an HTTP error in a specific HTTP request.