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

Method error

src/main/java/io/reactivex/rxjava3/core/Single.java:917–923  ·  view source on GitHub ↗

Signals a Throwable returned by the callback function for each individual SingleObserver. Scheduler: error does not

(@NonNull Supplier<? extends @NonNull Throwable> supplier)

Source from the content-addressed store, hash-verified

915 * @return the new {@code Single} instance
916 */
917 @CheckReturnValue
918 @NonNull
919 @SchedulerSupport(SchedulerSupport.NONE)
920 public static <@NonNull T> Single<T> error(@NonNull Supplier<? extends @NonNull Throwable> supplier) {
921 Objects.requireNonNull(supplier, "supplier is null");
922 return RxJavaPlugins.onAssembly(new SingleError<>(supplier));
923 }
924
925 /**
926 * Returns a {@code Single} that invokes a subscriber's {@link SingleObserver#onError onError} method when the

Callers 15

applyMethod · 0.95
singleToMaybeErrorMethod · 0.95
singleSubscribe0Method · 0.95
singleSubscribe1Method · 0.95
applyMethod · 0.95
runSingleErrorMethod · 0.95
errorOtherMethod · 0.95
errorMethod · 0.95
fromSingleThrowsMethod · 0.95
applyMethod · 0.95
applyMethod · 0.95

Calls 2

onAssemblyMethod · 0.95
justSupplierMethod · 0.95

Tested by 15

applyMethod · 0.76
singleToMaybeErrorMethod · 0.76
singleSubscribe0Method · 0.76
singleSubscribe1Method · 0.76
applyMethod · 0.76
runSingleErrorMethod · 0.76
errorOtherMethod · 0.76
errorMethod · 0.76
fromSingleThrowsMethod · 0.76
applyMethod · 0.76
applyMethod · 0.76