Skip to content

Commit 38eda0c

Browse files
authored
3.x: Add 'Error handling' section to Observable.blockingFirst documentation (#6900) (#6903)
1 parent 81f0569 commit 38eda0c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/io/reactivex/rxjava3/core/Observable.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5397,6 +5397,10 @@ public final Single<Boolean> any(@NonNull Predicate<? super T> predicate) {
53975397
* <dl>
53985398
* <dt><b>Scheduler:</b></dt>
53995399
* <dd>{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.</dd>
5400+
* <dt><b>Error handling:</b></dt>
5401+
* <dd>If the source signals an error, the operator wraps a checked {@link Exception}
5402+
* into {@link RuntimeException} and throws that. Otherwise, {@code RuntimeException}s and
5403+
* {@link Error}s are rethrown as they are.</dd>
54005404
* </dl>
54015405
*
54025406
* @return the first item emitted by the current {@code Observable}
@@ -5425,6 +5429,10 @@ public final T blockingFirst() {
54255429
* <dl>
54265430
* <dt><b>Scheduler:</b></dt>
54275431
* <dd>{@code blockingFirst} does not operate by default on a particular {@link Scheduler}.</dd>
5432+
* <dt><b>Error handling:</b></dt>
5433+
* <dd>If the source signals an error, the operator wraps a checked {@link Exception}
5434+
* into {@link RuntimeException} and throws that. Otherwise, {@code RuntimeException}s and
5435+
* {@link Error}s are rethrown as they are.</dd>
54285436
* </dl>
54295437
*
54305438
* @param defaultItem

0 commit comments

Comments
 (0)