public abstract class RxJavaErrorHandler
extends java.lang.Object
Observer.onError(Throwable) behavior.
For example, all Exceptions can be logged using this handler even if Observer.onError(Throwable) is ignored or not provided when an Observable is subscribed to.
See RxJavaPlugins or the RxJava GitHub Wiki for information on configuring plugins: https://github.com/Netflix/RxJava/wiki/Plugins.
| Constructor and Description |
|---|
RxJavaErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(java.lang.Throwable e)
Receives all Exceptions from an
Observable passed to Observer.onError(Throwable). |
public void handleError(java.lang.Throwable e)
Observable passed to Observer.onError(Throwable).
This should NEVER throw an Exception. Make sure to try/catch(Throwable) all code inside this method implementation.
e - Exception