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

Localized Operator Error Handling #924

Merged

Conversation

benjchristensen
Copy link
Member

Do error handling in the lift function rather than try/catch in subscribe since this catches at the operator level rather than for an entire sequence. This then allows onErrorResumeNext and siblings to handle the error instead of it only being emitted to the final Subscriber.

I derived this fix while working on Hystrix 1.4.

- use the lift function rather than try/catch in subscribe since this catches at the operator level rather than for an entire sequence
- unit tests with onErrorResumeNext demonstrating the use cases
@cloudbees-pull-request-builder

RxJava-pull-requests #866 SUCCESS
This pull request looks good

benjchristensen added a commit that referenced this pull request Feb 25, 2014
@benjchristensen benjchristensen merged commit c1bd534 into ReactiveX:master Feb 25, 2014
@benjchristensen benjchristensen deleted the lift-error-handling branch February 25, 2014 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants