-
Couldn't load subscription status.
- Fork 157
feat(gql-error): add GQLSTATUS finders #1671
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝
driver/src/test/java/org/neo4j/driver/exceptions/Neo4jExceptionTest.java
Outdated
Show resolved
Hide resolved
driver/src/test/java/org/neo4j/driver/exceptions/Neo4jExceptionTest.java
Outdated
Show resolved
Hide resolved
In some situations it might be needed to check if GQL error or any error in its GQL error chain has a specific GQLSTATUS. This update adds 2 new methods to `Neo4jException` to make it easier: - `boolean containsGqlStatus(String gqlStatus)` - `Optional<Neo4jException> findByGqlStatus(String gqlStatus)`
e98673b to
ceb94ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much, looks great to me!
In some situations it might be needed to check if GQL error or any error in its GQL error chain has a specific GQLSTATUS.
This update adds 2 new methods to
Neo4jExceptionto make it easier:boolean containsGqlStatus(String gqlStatus)Optional<Neo4jException> findByGqlStatus(String gqlStatus)