Skip to content

Conversation

injectives
Copy link
Contributor

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)

Copy link

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

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

📝

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)`
@injectives injectives force-pushed the feature/gqlstatus branch from e98673b to ceb94ca Compare July 8, 2025 11:37
@injectives injectives requested a review from MaxAake July 8, 2025 11:37
Copy link

@MaxAake MaxAake left a comment

Choose a reason for hiding this comment

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

LGTM👍🏻

Copy link

@Lojjs Lojjs left a 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!

@injectives injectives merged commit ea6d569 into neo4j:6.x Jul 9, 2025
12 of 20 checks passed
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.

4 participants