Skip to content

Commit 2aefbda

Browse files
committed
Fix a heading mistake and the index generation message (neo4j#314)
1 parent 8a71d16 commit 2aefbda

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

modules/ROOT/pages/errors/gql-errors/index.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This is an automatically generated file. Do not edit it directly. It is generated from the templates/gql-index-template.adoc file and should be edited there.
1+
// THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT IT. THE STRUCTURE IS GENERATED FROM templates/gql-index-template.adoc AND THE CODES ARE POPULATED BY THE SCRIPTS LOCATED IN THE scripts/ FOLDER.
22

33

44
:description: This section describes the GQLSTATUS errors that Neo4j can return, grouped by category, and an example of when they can occur.
@@ -107,7 +107,7 @@ Status description:: error: connection exception - general driver database error
107107
[[data-exceptions]]
108108
== Data exceptions
109109

110-
Database exceptions occur when a client request contains the wrong format, types, or other unsupported input.
110+
Data exceptions occur when a client request contains the wrong format, types, or other unsupported input.
111111
Some examples are data and constraint creation, which conflicts with existing constraints, properties of non-storable type, and spatial and temporal values with invalid components.
112112

113113
=== xref:errors/gql-errors/22000.adoc[22000]
@@ -465,9 +465,10 @@ Status description:: error: data exception - not a valid CIDR IP. `{ <<input>> }
465465

466466
Status description:: error: data exception - new password cannot be the same as the old password. Expected the new password to be different from the old password.
467467

468+
[role=label--changed-2025.05]
468469
=== xref:errors/gql-errors/22N90.adoc[22N90]
469470

470-
Status description:: error: data exception - property type unsupported in constraint. `{ <<item>> }` is not supported in property type constraints.
471+
Status description:: error: data exception - property type unsupported in constraint. `{ <<valueType>> }` is not supported in property type constraints.
471472

472473
=== xref:errors/gql-errors/22N91.adoc[22N91]
473474

@@ -579,7 +580,7 @@ Status description:: error: data exception - invalid Neo4j type. `{ <<input>> }`
579580

580581
=== xref:errors/gql-errors/22NB9.adoc[22NB9]
581582

582-
Status description:: error: data exception - invalid inner list type. Lists cannot have `{ <<item>> }` as an inner type in this context.
583+
Status description:: error: data exception - invalid inner list type. Lists cannot have `{ <<typeDescription>> }` as an inner type in this context.
583584

584585

585586
[[invalid-transaction-state]]

modules/ROOT/templates/gql-index-template.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Connection exceptions occur when the client (e.g. Browser/Bloom/Cypher Shell) is
2424
[[data-exceptions]]
2525
== Data exceptions
2626

27-
Database exceptions occur when a client request contains the wrong format, types, or other unsupported input.
27+
Data exceptions occur when a client request contains the wrong format, types, or other unsupported input.
2828
Some examples are data and constraint creation, which conflicts with existing constraints, properties of non-storable type, and spatial and temporal values with invalid components.
2929

3030
{codes_starting_with:'22'}

scripts/generate-gql-error-index-from-template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def generate_from_template(template_file, errors_dir, output_file, include_descr
140140

141141
# Write the result to the output file
142142
with open(output_file, 'w') as f:
143-
f.write("// This is an automatically generated file. Do not edit it directly. It is generated from the templates/gql-index-template.adoc file and should be edited there.\n")
143+
f.write("// THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT IT. THE STRUCTURE IS GENERATED FROM templates/gql-index-template.adoc AND THE CODES ARE POPULATED BY THE SCRIPTS LOCATED IN THE scripts/ FOLDER.\n")
144144
f.write(template_content)
145145

146146
print(f'Generated index file at: {output_file}')

0 commit comments

Comments
 (0)