Skip to content

Commit fd8b8ba

Browse files
renetapopovaLojjs
andauthored
update class and subclass (#83) (#87)
Co-authored-by: Louise Söderström <[email protected]>
1 parent 76e0671 commit fd8b8ba

File tree

5 files changed

+59
-58
lines changed

5 files changed

+59
-58
lines changed

README.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm run start
2727
----
2828

2929
This will build a set of HTML files in `build/site` and then serve them through an express server at http://localhost:8000.
30-
The start script will also listen for changes and automatically rebuild the files automatically.
30+
The start script will also listen for changes and automatically rebuild the files.
3131
You will still need to refresh the page to view the changes.
3232

3333
[[contributing]]
@@ -76,7 +76,7 @@ Each error and notification comprises the following components, some of which ar
7676
| Notification
7777
| Error
7878

79-
| StatusCode (`Neo.[Class].[Subclass].[Name]`)
79+
| StatusCode (`Neo.[Type].[SubType].[Name]`)
8080
| See <<statuscode-syntax, StatusCode syntax>>.
8181
| For example, `Neo.ClientNotification.Statement.CartesianProduct`.
8282
| For example, `Neo.DatabaseError.Statement.RemoteExecutionFailed`.
@@ -103,14 +103,14 @@ m| ERROR
103103

104104
| Message (It will replace the notification title and description, and the error description and message in 6.0.)
105105
| See <<message, Message>>.
106-
2+| Contains the main information, such as the problem, cause, consequences, a simple solution, or a reference to the Status Codes documentation.
106+
2+| Contains the main information, such as the problem, cause, consequences, a simple solution if possible.
107107

108-
| Example (only in Status Codes documentation)
108+
| Example (only in the Neo4j Status Codes documentation)
109109
| See <<example, Example>>.
110110
| Contains one or more example queries to illustrate the possible scenarios when this notification would be returned.
111111
| N/A for 5.x
112112

113-
| Suggestions for improvement (only in Status Codes documentation)
113+
| Suggestions for improvement (only in the Neo4j Status Codes documentation)
114114
| See <<example, Example>>.
115115
| Contains a possible solution for the provided example query.
116116
| N/A for 5.x
@@ -121,14 +121,14 @@ The following are guidelines on how to write each of the notification and error
121121
[[statuscode-syntax]]
122122
==== StatusCode syntax
123123

124-
All Neo4j status codes follow the syntax `Neo.[Class].[Subclass].[Name]`.
124+
All Neo4j status codes follow the syntax `Neo.[Type].[SubType].[Name]`.
125125

126126
[options="header",cols="h,1,2,3,3,2",]
127127
|===
128128
| StatusCode
129129
| `Neo`
130-
| `[Class]`
131-
| `[Subclass]`
130+
| `[Type]`
131+
| `[SubType]`
132132
| `[Name]`
133133
| Example
134134

@@ -249,7 +249,7 @@ This component is currently documented only for notifications.
249249
If you are updating an error, you can skip this section.
250250
====
251251

252-
The examples and possible solutions are written only here in this repo, for the Status Codes doc.
252+
The examples and possible solutions are written only here in this repo, for the Neo4j Status Codes documentation.
253253

254254
Add one or more example queries to illustrate the possible scenarios when this notification would be returned.
255255
They should look similar to the following:

modules/ROOT/pages/errors/all-errors.adoc

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
[[neo4j-errors]]
55
= List of all error codes
66

7-
This page contains lists of all Neo4j errors, grouped by class.
7+
This page contains lists of all Neo4j errors, grouped by type.
88

99
== Client errors
1010

11-
This is a complete list of all client error status codes Neo4j may return, and what they mean.
11+
This is a complete list of all client errors Neo4j may return, and what they mean.
1212

1313
[options="header", cols="<1m,<1"]
1414
|===
1515

16-
| Status Code
16+
| Neo4j status code
1717
| Description
1818

1919
| Neo.ClientError.Cluster.NotALeader
@@ -271,12 +271,12 @@ You may want to retry with a longer timeout.
271271

272272
== Transient errors
273273

274-
This is a complete list of all transient error status codes Neo4j may return, and what they mean.
274+
This is a complete list of all transient errors Neo4j may return, and what they mean.
275275

276276
[options="header", cols="<1m,<1"]
277277
|===
278278

279-
| Status Code
279+
| Neo4j status code
280280
| Description
281281

282282
| Neo.TransientError.Cluster.ReplicationFailure
@@ -375,91 +375,91 @@ Transaction may succeed if retried.
375375

376376
== Database error
377377

378-
This is a complete list of all database error status codes Neo4j may return, and what they mean.
378+
This is a complete list of all database errors Neo4j may return, and what they mean.
379379

380380
[options="header", cols="<1m,<1"]
381381
|===
382382

383-
| Status Code
384-
| Description
383+
| Neo4j status code
384+
| Description
385385

386386
| Neo.DatabaseError.Database.DatabaseLimitReached
387-
| The limit to number of databases has been reached.
387+
| The limit to number of databases has been reached.
388388

389389
| Neo.DatabaseError.Database.UnableToStartDatabase
390-
| Unable to start database.
390+
| Unable to start database.
391391

392392
| Neo.DatabaseError.Database.Unknown
393393
| Unknown database management error.
394394

395395
| Neo.DatabaseError.Fabric.RemoteExecutionFailed
396-
| The database was unable to execute a remote part of the statement.
396+
| The database was unable to execute a remote part of the statement.
397397

398398
| Neo.DatabaseError.General.IndexCorruptionDetected
399399
|
400400
The request (directly or indirectly) referred to an index that is in a failed state.
401-
The index needs to be dropped and recreated manually.
401+
The index needs to be dropped and recreated manually.
402402

403403
| Neo.DatabaseError.General.SchemaCorruptionDetected
404404
|
405405
A malformed schema rule was encountered.
406-
Please contact your support representative.
406+
Please contact your support representative.
407407

408408
| Neo.DatabaseError.General.StorageDamageDetected
409409
|
410410
Expected set of files not found on disk.
411-
Please restore from backup.
411+
Please restore from backup.
412412

413413
| Neo.DatabaseError.General.UnknownError
414-
| An unknown error occurred.
414+
| An unknown error occurred.
415415

416416
| Neo.DatabaseError.Schema.ConstraintCreationFailed
417-
| Creating a requested constraint failed.
417+
| Creating a requested constraint failed.
418418

419419
| Neo.DatabaseError.Schema.ConstraintDropFailed
420-
| The database failed to drop a requested constraint.
420+
| The database failed to drop a requested constraint.
421421

422422
| Neo.DatabaseError.Schema.IndexCreationFailed
423-
| Failed to create an index.
423+
| Failed to create an index.
424424

425425
| Neo.DatabaseError.Schema.IndexDropFailed
426-
| The database failed to drop a requested index.
426+
| The database failed to drop a requested index.
427427

428428
| Neo.DatabaseError.Schema.LabelAccessFailed
429-
| The request accessed a label that did not exist.
429+
| The request accessed a label that did not exist.
430430

431431
| Neo.DatabaseError.Schema.PropertyKeyAccessFailed
432-
| The request accessed a property that does not exist.
432+
| The request accessed a property that does not exist.
433433

434434
| Neo.DatabaseError.Schema.RelationshipTypeAccessFailed
435-
| The request accessed a relationship type that does not exist.
435+
| The request accessed a relationship type that does not exist.
436436

437437
| Neo.DatabaseError.Schema.SchemaRuleAccessFailed
438-
| The request referred to a schema rule that does not exist.
438+
| The request referred to a schema rule that does not exist.
439439

440440
| Neo.DatabaseError.Schema.SchemaRuleDuplicateFound
441-
| The request referred to a schema rule that is defined multiple times.
441+
| The request referred to a schema rule that is defined multiple times.
442442

443443
| Neo.DatabaseError.Schema.TokenLimitReached
444444
| The maximum number of tokens of this type has been reached, no more tokens of this type can be created.
445445

446446
| Neo.DatabaseError.Statement.ExecutionFailed
447-
| The database was unable to execute the statement.
447+
| The database was unable to execute the statement.
448448

449449
| Neo.DatabaseError.Statement.RemoteExecutionFailed
450-
| The database was unable to execute a remote part of the statement.
450+
| The database was unable to execute a remote part of the statement.
451451

452452
| Neo.DatabaseError.Transaction.LinkedTransactionError
453-
| The transaction was terminated because another transaction executing the same query encountered an error.
453+
| The transaction was terminated because another transaction executing the same query encountered an error.
454454

455455
| Neo.DatabaseError.Transaction.TransactionCommitFailed
456-
| The database was unable to commit the transaction.
456+
| The database was unable to commit the transaction.
457457

458458
| Neo.DatabaseError.Transaction.TransactionLogError
459-
| The database was unable to write transaction to log.
459+
| The database was unable to write transaction to log.
460460

461461
| Neo.DatabaseError.Transaction.TransactionRollbackFailed
462-
| The database was unable to roll back the transaction.
462+
| The database was unable to roll back the transaction.
463463

464464
| Neo.DatabaseError.Transaction.TransactionStartFailed
465465
| The database was unable to start the transaction.

modules/ROOT/pages/errors/index.adoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
[[notifications]]
44
= Error codes
55

6-
Error codes are returned by the server when the execution of a query fails.
7-
They all have severity level `ERROR` and are grouped into one of the following classes:
6+
Error codes are Neo4j status codes returned by the server when the execution of a query fails.
7+
They always have the severity level `ERROR`.
8+
Errors are grouped based on the type of the error code:
89

910
Client errors::
1011
These errors are caused by the client and are usually related to the request itself.
1112
Client errors have the prefix `Neo.ClientError`.
1213

1314
Transient errors::
14-
These errors are detected by the server and are usually related to some kind of database unavailability, such as limits reached, out-of-memory, timeouts, etc.
15+
These errors are detected by the server and are usually related to some kind of database unavailability, such as limits reached, out-of-memory, timeouts, etc.
1516
The error can be temporary and could therefore succeed if retrying the request.
1617
Transient errors have the prefix `Neo.TransientError`.
1718

modules/ROOT/pages/index.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,38 +7,38 @@ This document details all status codes that a Neo4j DBMS may return to indicate
77

88
== Format
99

10-
Each status code follows the same format:
10+
Each Neo4j status code follows the same format:
1111

1212
[source, status code format, role="noheader"]
1313
-----
14-
Neo.[Class].[Subclass].[Name]
14+
Neo.[Type].[SubType].[Name]
1515
-----
1616

17-
== Classification
17+
== Types of Neo4j status codes
1818

19-
The fact that a status code is returned by the server does not always mean there is a fatal error.
20-
Status codes can also indicate transient problems that may go away if you retry the request.
21-
The classification of the status code determines the effect on the transaction.
19+
The fact that a Neo4j status code is returned by the server does not always mean there is a fatal error.
20+
Neo4j status codes can also indicate transient problems that may go away if you retry the request.
21+
The type of the status code determines the effect on the transaction.
2222

23-
.Neo4j status code classification
23+
.Neo4j status code types
2424
[options="header", cols="<1m,<2,<1"]
2525
|===
2626

27-
| Class
27+
| Type
2828
| Description
29-
| Effect on the transaction
29+
| Effect on the transaction
3030

3131
| xref:errors/all-errors.adoc#_client_errors[ClientError]
3232
| The Client sent a bad request - changing the request might yield a successful outcome.
3333
| Rollback
3434

3535
| xref:errors/all-errors#_transient_errors[TransientError]
3636
| The database cannot service the request right now, retrying later might yield a successful outcome.
37-
| Rollback
37+
| Rollback
3838

3939
| xref:errors/all-errors#_database_error[DatabaseError]
4040
| The database failed to service the request.
41-
| Rollback
41+
| Rollback
4242

4343
| xref:notifications/index.adoc[ClientNotifications]
4444
| The query execution was successful, but there are notifications about the request sent by the client.

modules/ROOT/pages/notifications/index.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
[[notifications]]
44
= Notification codes
55

6-
`ClientNotification` codes are messages returned by the server with severity `WARNING` or `INFORMATION`.
7-
Contrary to error messages, notifications are only returned if the execution of the query is successful.
6+
Notification codes are Neo4j status codes of type `ClientNotification`and are returned by the server with severity `WARNING` or `INFORMATION`.
7+
Contrary to errors, notifications are only returned if the execution of the query is successful.
88

99
[[notification-format]]
10-
== Notification code fields
10+
== Notification object fields
1111

1212
The notification object, which is part of the result summary, consists of the following fields:
1313

14-
* *Code* -- The status code in the form of `Neo.ClientNotification.[Subclass].[Name]`.
15-
* *Title* -- The description of the status code.
14+
* *Code* -- The Neo4j status code in the form of `Neo.ClientNotification.[SubType].[Name]`.
15+
* *Title* -- The description of the Neo4j status code.
1616
* *Description* -- The description of a specific notification, which can contain details about the query being executed.
1717
* *Severity* -- The severity can be one of the following: +
1818
** `WARNING`: There might be a problem with your query. Please, take a look. +

0 commit comments

Comments
 (0)