Skip to content

refactor(rtdb, firestore): prevent paging from throwing ExecutionException #1988

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

Merged

Conversation

thatfiredev
Copy link
Member

After the discussion in #1983 I noticed that throw new Exception(e.getCause()) is actually throwing the original exception wrapped in a new Exception object. So instead of instantiating an Exception, the library should now try to cast from Throwable and only instantiate as a last resort.

This PR also updates firestore to have the same behavior.

@thatfiredev thatfiredev requested a review from samtstern as a code owner August 3, 2021 21:34
@google-cla google-cla bot added the cla: yes label Aug 3, 2021
@samtstern samtstern added this to the 8.0.1 milestone Aug 4, 2021
@samtstern samtstern changed the base branch from master to version-8.0.1-dev August 4, 2021 09:53
@samtstern samtstern enabled auto-merge (squash) August 4, 2021 09:54
@samtstern samtstern merged commit 7643930 into firebase:version-8.0.1-dev Aug 4, 2021
@thatfiredev thatfiredev deleted the rpf-fix-paging-errors branch August 4, 2021 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants