Skip to content

Commit 1abaa32

Browse files
authored
Fix a heading mistake and the index generation message (#314)
1 parent 240409c commit 1abaa32

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.
@@ -120,7 +120,7 @@ Status description:: error: connection exception - shard execution client error.
120120
[[data-exceptions]]
121121
== Data exceptions
122122

123-
Database exceptions occur when a client request contains the wrong format, types, or other unsupported input.
123+
Data exceptions occur when a client request contains the wrong format, types, or other unsupported input.
124124
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.
125125

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

491491
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.
492492

493+
[role=label--changed-2025.05]
493494
=== xref:errors/gql-errors/22N90.adoc[22N90]
494495

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

497498
=== xref:errors/gql-errors/22N91.adoc[22N91]
498499

@@ -608,7 +609,7 @@ Status description:: error: data exception - invalid Neo4j type. `{ <<input>> }`
608609

609610
=== xref:errors/gql-errors/22NB9.adoc[22NB9]
610611

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

613614

614615
[[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)