Subscriber#onError(Throwable) behavior.
For example, all Exceptions can be logged using this handler even if
Subscriber#onError(Throwable) is ignored or not provided when an Observable is subscribed to.
This plugin is also responsible for augmenting rendering of OnErrorThrowable.OnNextValue.
See RxJavaPlugins or the RxJava GitHub Wiki for information on configuring plugins: https://github.com/ReactiveX/RxJava/wiki/Plugins.
| Modifier and Type | Field and Description |
|---|---|
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleError(Throwable
the e)Exception
Deprecated
Receives all Exceptions from an Observable passed to
Subscriber#onError(Throwable).
|
| public final String | Returns: a shortString representation of the item if one is known for its type, or null for
defaultthe last emitted item, that caused the exception wrapped in
item)OnErrorThrowable.OnNextValueReceives items causing |
| protected String | Returns: a shortString representation of the item if one is known for its type, or null for
defaultthe last emitted item, that caused the exception wrapped in
item)OnErrorThrowable.OnNextValueOverride this method to provide rendering for specific types other than primitive types and null. |
| ERROR_IN_RENDERING_SUFFIX | back to summary |
|---|---|
| protected static final String ERROR_IN_RENDERING_SUFFIX | |
| RxJavaErrorHandler | back to summary |
|---|---|
| public RxJavaErrorHandler() | |
| handleError | back to summary |
|---|---|
| public void handleError(Throwable e)
Deprecated
Receives all
This should never throw an
| |
| handleOnNextValueRendering | back to summary |
|---|---|
| public final String handleOnNextValueRendering(Object item) Receives items causing
Note that primitive types are always rendered as their
If a | |
| render | back to summary |
|---|---|
| protected String render(Object item) throws InterruptedException Override this method to provide rendering for specific types other than primitive types and null.
For performance and overhead reasons, this should should limit to a safe production of a short
If a
| |