src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @NonNull
    @BackpressureSupport(BackpressureKind.PASS_THROUGH)
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Flowable<T> error(Callable<? extends Throwable> supplier) {
        ObjectHelper.requireNonNull(supplier, "supplier is null");
        return RxJavaPlugins.onAssembly(new FlowableError<T>(supplier));
    }
@CheckReturnValue
    @NonNull
    @BackpressureSupport(BackpressureKind.PASS_THROUGH)
    @SchedulerSupport(SchedulerSupport.NONE)
    public static <T> Flowable<T> error(Callable<? extends Throwable> supplier) {
        ObjectHelper.requireNonNull(supplier, "supplier is null");
        return RxJavaPlugins.onAssembly(new FlowableError<T>(supplier));
    }
Returns a Flowable that invokes a {@link Subscriber}'s {@link Subscriber#onError onError} method when the
Subscriber subscribes to it.
<p>
<img width="640" height="190" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/error.png" alt="">
<dl>
<dt><b>Backpressure:</b></dt>
<dd>This source doesn't produce any elements and effectively ignores downstream backpressure.</dd>
<dt><b>Scheduler:</b></dt>
<dd>{@code error} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>

@param supplier
a Callable factory to return a Throwable for each individual Subscriber
@param <T>
the type of the items (ostensibly) emitted by the Publisher
@return a Flowable that invokes the {@link Subscriber}'s {@link Subscriber#onError onError} method when
the Subscriber subscribes to it
@see <a href="http://reactivex.io/documentation/operators/empty-never-throw.html">ReactiveX operators documentation: Throw</a>