diff --git a/modules/ROOT/pages/monitoring/logging.adoc b/modules/ROOT/pages/monitoring/logging.adoc index a6b93cdda..4f214d50e 100644 --- a/modules/ROOT/pages/monitoring/logging.adoc +++ b/modules/ROOT/pages/monitoring/logging.adoc @@ -1292,6 +1292,14 @@ The query log includes the GQL error information under the JSON object `errorInf * `position` -- The position (a JSON object containing a field for `column`, `offset`, and `line`) in the query where this error occurred. * `cause` -- A JSON object containing the `errorInfo` JSON object of the cause of the current `errorInfo` JSON object. +[NOTE] +==== +The default GQLSTATUS code `50N42` is returned when an exception does not have a GQL object. +Starting from Neo4j 5.25, GQL objects are added to exceptions; therefore, you can expect many `50N42` codes. +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. +Additionally, GQL codes for external procedures are not yet stable. +==== + The following are examples of the `errorInfo` JSON object: .`errorInfo` JSON object of a database error