Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an "Error handling" JavaDocs section to fromCallable & co #6179

Closed
akarnokd opened this issue Aug 27, 2018 · 0 comments
Closed

Add an "Error handling" JavaDocs section to fromCallable & co #6179

akarnokd opened this issue Aug 27, 2018 · 0 comments

Comments

@akarnokd
Copy link
Member

The operators of fromCallable, fromAction and fromRunnable in the reactive classes could use an <dt><b>Error handling:</b></dt> section in the JavaDocs describing the regular and canceled/disposed behavior.

If the {@link Callable/Action/Runnable} throws an exception/exception/unchecked exception, the respective {@link Throwable} is delivered to the downstream via {@link Subscriber/Observer/.../#onError()}, except when the downstream has canceled/disposed this {@code Flowable/Observable/Single/Maybe/Completable} source. In this latter case, the Throwable is delivered to the global error handler via {@link RxJavaPlugins#onError(Throwable)} as {@link io.reactivex.exceptions.UndeliverableException UndeliverableException}.

@akarnokd akarnokd added this to the 2.2 backlog milestone Aug 27, 2018
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 1, 2018
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
…ble(), Single#fromCallable(), and Completable#fromCallable().
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
…ble(), Single#fromCallable(), and Completable#fromCallable().
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
…ble(), Single#fromCallable(), and Completable#fromCallable().
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
luis-cortes pushed a commit to luis-cortes/RxJava that referenced this issue Sep 2, 2018
akarnokd pushed a commit that referenced this issue Sep 3, 2018
* #6179 Adding Error handling javadocs to Observable#fromCallable(), Single#fromCallable(), and Completable#fromCallable().

* #6179 Adding Error handling javadocs to Maybe#fromAction() and Completable#fromAction().

* #6179 Removing cancellation language since only the `Flowable` type has `cancel()`

* #6179 Adding error handling JavaDocs to Flowable#fromCallable()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant