MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / error

Method error

src/main/java/io/reactivex/rxjava3/core/Maybe.java:935–941  ·  view source on GitHub ↗

Returns a Maybe that invokes a subscriber's MaybeObserver#onError onError method when the subscriber subscribes to it. Scheduler:

(@NonNull Throwable throwable)

Source from the content-addressed store, hash-verified

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

Callers 15

applyMethod · 0.95
getMethod · 0.95
untilTrueErrorMethod · 0.95
untilFalseErrorMethod · 0.95
errorMethod · 0.95
errorCallableMethod · 0.95
observeOnErrorMethod · 0.95
observeOnErrorThreadMethod · 0.95
subscribeOnErrorMethod · 0.95
doAfterTerminateErrorMethod · 0.95

Calls 1

onAssemblyMethod · 0.95

Tested by 15

applyMethod · 0.76
getMethod · 0.76
untilTrueErrorMethod · 0.76
untilFalseErrorMethod · 0.76
errorMethod · 0.76
errorCallableMethod · 0.76
observeOnErrorMethod · 0.76
observeOnErrorThreadMethod · 0.76
subscribeOnErrorMethod · 0.76
doAfterTerminateErrorMethod · 0.76