Summary
In this chapter, we explored some of the most commonly used RxJS error handling strategies available. We learned about the Observable contract. We explained some useful RxJS operators to handle errors, namely catchError()
, delayWhen()
, retry()
, and retryWhen()
. We also shed light on the different strategies for error handling and when to choose each strategy. Finally, we handled the error in our Recipes app for the first implemented feature.
Now that we know how to handle errors in RxJS, let's move on to the next reactive pattern – combining streams.