Chapter 5: Error Handling
Error handling is a crucial part of every application. Errors in programming happen all the time, and RxJS is no exception; implementing a process that only covers happy cases determines the failure of your application. I always say this to my students in every training session. In RxJS, there are a lot of error handling strategies that you need to learn in order to handle errors efficiently.
We will start by explaining the contract of the Observable in RxJS, which is crucial to understand what comes after. Then, we will learn the different error handling patterns and the operators provided by RxJS for that purpose. Next, we will shed light on the different error handling strategies and the use case of every strategy. Finally, we will practice one of the error handling strategies in our recipes app.
In this chapter, we're going to cover the following main topics:
- Understanding the anatomy of an Observable
- Exploring error handling...