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

2.x: add error handling section to merge() operator docs #5786

Merged
merged 2 commits into from
Jan 6, 2018

Conversation

akarnokd
Copy link
Member

@akarnokd akarnokd commented Jan 3, 2018

This PR adds the Error handling JavaDoc section to the other merge operators throughout the base reactive classes.

Note though that the following mergeDelayError methods don't exist yet:

  • Maybe.mergeDelayError(Publisher, int)
  • Single.mergeDelayError(*) (* all variants of their respective merge methods are missing)

These can be added in a separate PR and don't require implementing new operators but to configure existing ones with delayError == true.

@akarnokd akarnokd added this to the 2.2 milestone Jan 3, 2018
@codecov
Copy link

codecov bot commented Jan 3, 2018

Codecov Report

Merging #5786 into 2.x will decrease coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #5786      +/-   ##
============================================
- Coverage     96.29%   96.23%   -0.07%     
  Complexity     5809     5809              
============================================
  Files           634      634              
  Lines         41607    41629      +22     
  Branches       5770     5775       +5     
============================================
- Hits          40066    40062       -4     
- Misses          614      630      +16     
- Partials        927      937      +10
Impacted Files Coverage Δ Complexity Δ
src/main/java/io/reactivex/Observable.java 100% <ø> (ø) 509 <0> (ø) ⬇️
src/main/java/io/reactivex/Completable.java 100% <ø> (ø) 115 <0> (ø) ⬇️
src/main/java/io/reactivex/Flowable.java 100% <ø> (ø) 526 <0> (ø) ⬇️
src/main/java/io/reactivex/Maybe.java 100% <ø> (ø) 170 <0> (ø) ⬇️
src/main/java/io/reactivex/Single.java 100% <ø> (ø) 137 <0> (ø) ⬇️
.../operators/completable/CompletableConcatArray.java 93.75% <0%> (-6.25%) 2% <0%> (ø)
...in/java/io/reactivex/subjects/BehaviorSubject.java 86.24% <0%> (-5.83%) 54% <0%> (ø)
...ternal/operators/flowable/FlowableSampleTimed.java 92.64% <0%> (-4.42%) 3% <0%> (ø)
.../operators/observable/ObservableFlatMapSingle.java 88.8% <0%> (-2.99%) 2% <0%> (ø)
...va/io/reactivex/internal/queue/SpscArrayQueue.java 97.61% <0%> (-2.39%) 22% <0%> (-1%)
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 709ccd6...93fb65e. Read the comment docs.

* first one's error or, depending on the concurrency of the sources, may terminate with a
* {@code CompositeException} containing two or more of the various error signals.
* {@code Throwable}s that didn't make into the composite will be sent (individually) to the global error handler via
* {@link RxJavaPlugins#onError(Throwable)} method as <em>undeliverable errors</em>. Similarly, {@code Throwable}s
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe replace <em>undeliverable with <code>UndeliverableException similarly to CompositeException

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants