T - the source and result element typepublic static class Resume.Conditionally<T> extends java.lang.Object implements Observable<T>
Exception semantics: in case of an exception in source, the exception is turned into a continuation, but the second observable's error now terminates the sequence.
| Modifier and Type | Field and Description |
|---|---|
protected Func1<? super java.lang.Throwable,? extends Observable<? extends T>> |
handler
The exception handler.
|
protected Observable<? extends T> |
source
The source sequence.
|
| Constructor and Description |
|---|
Conditionally(Observable<? extends T> source,
Func1<? super java.lang.Throwable,? extends Observable<? extends T>> handler)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.Closeable |
register(Observer<? super T> observer)
Registers an observer for the notification of Ts.
|
protected final Observable<? extends T> source
protected final Func1<? super java.lang.Throwable,? extends Observable<? extends T>> handler
public Conditionally(Observable<? extends T> source, Func1<? super java.lang.Throwable,? extends Observable<? extends T>> handler)
source - The source sequencehandler - The exception handler@Nonnull
public java.io.Closeable register(@Nonnull
Observer<? super T> observer)
Observableregister in interface Observable<T>observer - the observer of Ts or any supertype of it