Handling Errors
In this lesson, we'll look at how we can handle errors in RxJS.
Error handling in RxJS is simple. There are a couple of things to know. First, if an error occurs, RxJS will stop the flow of data in the pipeline. If an operator throws an error, any subsequent operators will not run. Instead, the observable will tell any observers that an error has occurred. From there, the observer can handle the error.
Let’s try throwing an error.
Get hands-on with 1400+ tech skills courses.