src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @NonNull
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Flowable<T> onErrorResumeNext(Function<? super Throwable, ? extends Publisher<? extends T>> resumeFunction) {
        ObjectHelper.requireNonNull(resumeFunction, "resumeFunction is null");
        return RxJavaPlugins.onAssembly(new FlowableOnErrorNext<T>(this, resumeFunction, false));
    }
@CheckReturnValue
    @NonNull
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Flowable<T> onErrorResumeNext(Function<? super Throwable, ? extends Publisher<? extends T>> resumeFunction) {
        ObjectHelper.requireNonNull(resumeFunction, "resumeFunction is null");
        return RxJavaPlugins.onAssembly(new FlowableOnErrorNext<T>(this, resumeFunction, false));
    }
Instructs a Publisher to pass control to another Publisher rather than invoking
{@link Subscriber#onError onError} if it encounters an error.
<p>
<img width="640" height="310" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/onErrorResumeNext.png" alt="">
<p>
By default, when a Publisher encounters an error that prevents it from emitting the expected item to
its {@link Subscriber}, the Publisher invokes its Subscriber's {@code onError} method, and then quits
without invoking any more of its Subscriber's methods. The {@code onErrorResumeNext} method changes this
behavior. If you pass a function that returns a Publisher ({@code resumeFunction}) to
{@code onErrorResumeNext}, if the original Publisher encounters an error, instead of invoking its
Subscriber's {@code onError} method, it will instead relinquish control to the Publisher returned from
{@code resumeFunction}, which will invoke the Subscriber's {@link Subscriber#onNext onNext} method if it is
able to do so. In such a case, because no Publisher necessarily invokes {@code onError}, the Subscriber
may never know that an error happened.
<p>
You can use this to prevent errors from propagating or to supply fallback data should errors be
encountered.
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator honors backpressure from downstream. This and the resuming {@code Publisher}s
are expected to honor backpressure as well.
If any of them violate this expectation, the operator <em>may</em> throw an
{@code IllegalStateException} when the source {@code Publisher} completes or
a {@code MissingBackpressureException} is signaled somewhere downstream.</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code onErrorResumeNext} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>

@param resumeFunction
a function that returns a Publisher that will take over if the source Publisher encounters
an error
@return the original Publisher, with appropriately modified behavior
@see <a href="http://reactivex.io/documentation/operators/catch.html">ReactiveX operators documentation: Catch</a>