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

Method error

src/main/java/io/reactivex/rxjava3/core/Observable.java:1839–1845  ·  view source on GitHub ↗

Returns an Observable that invokes an Observer's Observer#onError onError method when the Observer subscribes to it. Schedu

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

Source from the content-addressed store, hash-verified

1837 * @see <a href="http://reactivex.io/documentation/operators/empty-never-throw.html">ReactiveX operators documentation: Throw</a>
1838 */
1839 @CheckReturnValue
1840 @NonNull
1841 @SchedulerSupport(SchedulerSupport.NONE)
1842 public static <@NonNull T> Observable<T> error(@NonNull Supplier<? extends @NonNull Throwable> supplier) {
1843 Objects.requireNonNull(supplier, "supplier is null");
1844 return RxJavaPlugins.onAssembly(new ObservableError<>(supplier));
1845 }
1846
1847 /**
1848 * Returns an {@code Observable} that invokes an {@link Observer}'s {@link Observer#onError onError} method when the

Callers 15

errorSwallowedMethod · 0.95
errorMeansDisposedMethod · 0.95
applyMethod · 0.95
fromObservableErrorMethod · 0.95
applyMethod · 0.95
observableSubscribe0Method · 0.95
observableSubscribe1Method · 0.95
runObservableErrorMethod · 0.95
errorMethod · 0.95
errorMethod · 0.95

Calls 2

onAssemblyMethod · 0.95
justSupplierMethod · 0.95

Tested by 15

errorSwallowedMethod · 0.76
errorMeansDisposedMethod · 0.76
applyMethod · 0.76
fromObservableErrorMethod · 0.76
applyMethod · 0.76
observableSubscribe0Method · 0.76
observableSubscribe1Method · 0.76
runObservableErrorMethod · 0.76
errorMethod · 0.76
errorMethod · 0.76