public abstract class RxJavaErrorHandler
extends java.lang.Object
Observer.onError(Throwable)
behavior.
For example, all Exception
s 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/ReactiveX/RxJava/wiki/Plugins.
Constructor and Description |
---|
RxJavaErrorHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handleError(java.lang.Throwable e)
|
public void handleError(java.lang.Throwable e)
Exception
s from an 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
- the Exception