RxJS allows to subscribe to a source with onNext, onError, onComplete.
I am looking for a way to construct an observable which allow users to handle errors with onError, but if there is error that is unhandled, I can show globally growl (a notification from primeng library).
Is there a nice way to catch unhandled in subscription errors.
Update1: I have noticed that Angular2 has a central ErrorHandler (Module level). The question is to attach it to UI somehow. https://angular.io/docs/ts/latest/api/core/index/ErrorHandler-class.html
If you do not subscribe to the
error
event it will bubble. You can wrap your stream with try..catch to catch these to prevent your application from crashing.