Returns a Maybe that invokes a subscriber's MaybeObserver#onError onError method when the subscriber subscribes to it. Scheduler:
(@NonNull Throwable throwable)
| 933 | * @see <a href="http://reactivex.io/documentation/operators/empty-never-throw.html">ReactiveX operators documentation: Throw</a> |
| 934 | */ |
| 935 | @CheckReturnValue |
| 936 | @NonNull |
| 937 | @SchedulerSupport(SchedulerSupport.NONE) |
| 938 | public static <@NonNull T> Maybe<T> error(@NonNull Throwable throwable) { |
| 939 | Objects.requireNonNull(throwable, "throwable is null"); |
| 940 | return RxJavaPlugins.onAssembly(new MaybeError<>(throwable)); |
| 941 | } |
| 942 | |
| 943 | /** |
| 944 | * Returns a {@code Maybe} that invokes a {@link MaybeObserver}'s {@link MaybeObserver#onError onError} method when the |