Handling Errors Reactively
Errors in programming happen all the time, and RxJS is no exception. Handling those errors is a crucial part of every application. As I always say to my students in every training session, implementing a process that only covers happy cases determines the failure of your application. However, 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 understanding 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 recipe app.
In this chapter, we’re going to cover the following main topics:
- Understanding the anatomy of an Observable contract ...