Skip to content

Commit

Permalink
Update modules/ROOT/pages/errors/index.adoc
Browse files Browse the repository at this point in the history
Co-authored-by: Hannes Voigt <[email protected]>
  • Loading branch information
renetapopova and hvub authored Nov 29, 2024
1 parent 9c409e8 commit 4f63dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ROOT/pages/errors/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Most of these implement the `HasStatus` interface, which means they have a statu
On the server side, an exception contains normal Java constructors and methods like `getMessage()`, `getCause()`, etc., and additionally the `status()` method from the `HasStatus` API, which returns the status code.

The exceptions also get new compulsary fields for `gqlStatus`, `statusDescription`, `diagnosticRecord`, and an optional field for `cause`.
The cause field in turn has its own GQLSTATUS, statusdescription, diagnostic record, and message. +
The cause field in turn has its own GQLSTATUS, status description, diagnostic record, and message. +
The `getMessage()` method is kept as Java exceptions inherently have this method.
And a new classification field is added to cover the division of client errors, transient errors, and database errors, which today is part of the Neo4j code.
All of these fields construct the GQLSTATUS object, which is sent to the driver as part of the Failure Bolt message.
Expand Down

0 comments on commit 4f63dfd

Please sign in to comment.