Skip to content

Commit 1f16475

Browse files
Changes to query log docs w.r.t. GQL codes (#1865)
Co-authored-by: Reneta Popova <[email protected]>
1 parent df6e14b commit 1f16475

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/ROOT/pages/monitoring/logging.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,14 @@ 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+
[NOTE]
1296+
====
1297+
The default GQLSTATUS code `50N42` is returned when an exception does not have a GQL object.
1298+
Starting from Neo4j 5.25, GQL objects are added to exceptions; therefore, you can expect many `50N42` codes.
1299+
However, it's important not to rely on this default code, as future Neo4j versions might change it by adding an appropriate GQL object to the exception.
1300+
Additionally, GQL codes for external procedures are not yet stable.
1301+
====
1302+
12951303
The following are examples of the `errorInfo` JSON object:
12961304

12971305
.`errorInfo` JSON object of a database error

0 commit comments

Comments
 (0)