Closed
Description
I'd like to catch unhandled errors that arise from Observables globally.
The documentation here suggests to use RxJavaPlugins.getInstance().registerErrorHandler
, but both getInstance
and RxJavaErrorHandler
are deprecated with no hints as what to use instead.
The documentation on error handling in RxJava here also has no mention of globally handling errors.
I did find RxJavaHooks.setOnError
, but I have not found any documentation on this, so I was unsure whether it should be used.
Is this still on-going work or can anyone suggest what to use as an alternative to registerErrorHandler
?