I have a generic error handling solution in my application that should be called whenever called onError. Instead of implementing onErrorfor each, subscribeI did this inside the class Application:
RxJavaPlugins.getInstance().registerErrorHandler(new RxJavaErrorHandler() {
@Override
public void handleError(final Throwable throwable) {
new ErrorHandler().call(throwable);
}
});
However, I would like to be able to override this by implementing onError, and in accordance with:
https://github.com/ReactiveX/RxJava/wiki/Plugins#rxjavaerrorhandler
This plugin allows you to register a function that will handle errors that occur in RxJava, but cannot be handled by the normal RxJava onError notification process (for example, if RxJava tries to propagate the error to a subscriber who did not implement the onError handler).
, onError. handleError RxJavaErrorHandler , onError.
Update:
zsxwing, wiki RxJavaErrorHandler.