Skip to content

PHPC-1387: Consider error document for cursor exceptions #983

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
merged 2 commits into from
May 31, 2019

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented May 30, 2019

https://jira.mongodb.org/browse/PHPC-1387

This allows executeQuery() to throw a CommandException, which exposes the error document.

In 1.6+, it will also ensure that error labels are set on any RuntimeException thrown during cursor iteration, which is relevant for transactions.

@jmikola jmikola requested a review from kvwalker May 30, 2019 16:35
@jmikola jmikola changed the base branch from master to v1.5 May 30, 2019 17:14
Copy link
Contributor

@kvwalker kvwalker left a comment

Choose a reason for hiding this comment

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

lgtm

@jmikola jmikola force-pushed the 1.5-phpc-1387 branch 2 times, most recently from 1a9cd8f to 521ff23 Compare May 30, 2019 17:40
This allows executeQuery() to throw a CommandException, which exposes the error document.

In 1.6+, it will also ensure that error labels are set on any RuntimeException thrown during cursor iteration, which is relevant for transactions.
@jmikola
Copy link
Member Author

jmikola commented May 31, 2019

FYI: AppVeyor build failures are to be expected. These were fixed in the 1.6 branch by PHPC-1329.

@jmikola jmikola merged commit 04b1cc3 into mongodb:v1.5 May 31, 2019
jmikola added a commit that referenced this pull request May 31, 2019
@jmikola jmikola deleted the 1.5-phpc-1387 branch May 31, 2019 14:09
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