Error Handling
If something unexpected arises we can raise an error on the Observable
stream and use the function reserved for handling errors in our subscribe
routine to see what happened.
Here an error is raised and caught. One thing to note is that if we included a .complete()
after we raised the error, this event will not actually fire. Therefore you should remember to include some call in your error handler that will turn off any visual loading states in your application.
Last updated