Error Handling Overview
All applications are prone to having errors. We want to be proactive and build error handling into our applications.
In this video, we took a look at why errors might occur, status codes to recognize errors, and a few ways for catching errors.
Methods for catching errors
- Handling the error directly in our subscribe to our Observable.
- Using catchError() to catch and replace the error.
- Using catchError() to catch and rethrow the error.
Next up we will look at implementing these strategies and the flow they create in our own application.