Summary
In this chapter, we learned about the Observable contract and explored some of the most commonly used RxJS error handling strategies available and the different operators, 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 Book 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.