Skip to content

Commit 95c8480

Browse files
committed
Changes to query log docs w.r.t. GQL codes
1 parent cf61815 commit 95c8480

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/ROOT/pages/monitoring/logging.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,11 @@ The query log includes the GQL error information under the JSON object `errorInf
12921292
* `position` -- The position (a JSON object containing a field for `column`, `offset`, and `line`) in the query where this error occurred.
12931293
* `cause` -- A JSON object containing the `errorInfo` JSON object of the cause of the current `errorInfo` JSON object.
12941294

1295+
GQLSTATUS code `50N42` is our default code. This code is shown when the exception does not have a GQL object yet.
1296+
Neo4j version 5.25 started to add GQL objects to exceptions. Therefore, many `50N42` codes can be expected.
1297+
Note: You should not rely on this default code, since future Neo4j versions might add an appropriate GQL object to the exception (therefore changing this code into another one).
1298+
Also, GQL codes for external procedures are not stable yet.
1299+
12951300
The following are examples of the `errorInfo` JSON object:
12961301

12971302
.`errorInfo` JSON object of a database error

0 commit comments

Comments
 (0)