File tree Expand file tree Collapse file tree 5 files changed +55
-3
lines changed
neo4j-driver-deno/lib/core Expand file tree Collapse file tree 5 files changed +55
-3
lines changed Original file line number Diff line number Diff line change 36
36
"enable" : true
37
37
},
38
38
"brand" : {
39
- "title" : " Neo4j Bolt Driver 4.1 for JavaScript" ,
39
+ "title" : " Neo4j Bolt Driver 6.x for JavaScript" ,
40
40
"repository" : " https://github.com/neo4j/neo4j-javascript-driver"
41
41
}
42
42
}
Original file line number Diff line number Diff line change @@ -140,6 +140,13 @@ class GQLError extends Error {
140
140
* @public
141
141
*/
142
142
this . rawClassification = diagnosticRecord ?. _classification ?? undefined
143
+ /**
144
+ * Represents the name for the type of error, inherited from base JavaScript {@link Error}.
145
+ * Will be 'GQLError' for {@link GQLError}s and 'Neo4jError' for {@link Neo4jError}s.
146
+ *
147
+ * @type {string }
148
+ * @public
149
+ */
143
150
this . name = 'GQLError'
144
151
}
145
152
@@ -163,6 +170,11 @@ class Neo4jError extends GQLError {
163
170
* Optional error code. Will be populated when error originates in the database.
164
171
*/
165
172
code : string
173
+
174
+ /**
175
+ * Whether the request that caused this error can be safely retried without duplicate commits on the server.
176
+ * This does not apply when running auto-commit transactions using {@link Session#run}
177
+ */
166
178
retriable : boolean
167
179
168
180
/**
@@ -187,7 +199,21 @@ class Neo4jError extends GQLError {
187
199
*/
188
200
this . code = code
189
201
202
+ /**
203
+ * The name of the type of error.
204
+ *
205
+ * @type {string }
206
+ * @public
207
+ */
190
208
this . name = 'Neo4jError'
209
+
210
+ /**
211
+ * If the error is considered retriable.
212
+ * This does not apply when running auto-commit transactions using {@link Session#run}
213
+ *
214
+ * @type {boolean }
215
+ * @public
216
+ */
191
217
this . retriable = _isRetriableCode ( code )
192
218
}
193
219
Original file line number Diff line number Diff line change 36
36
"enable" : false
37
37
},
38
38
"brand" : {
39
- "title" : " Neo4j Bolt Lite Driver 5 .x for JavaScript" ,
39
+ "title" : " Neo4j Bolt Lite Driver 6 .x for JavaScript" ,
40
40
"repository" : " https://github.com/neo4j/neo4j-javascript-driver"
41
41
}
42
42
}
Original file line number Diff line number Diff line change 36
36
"enable" : true
37
37
},
38
38
"brand" : {
39
- "title" : " Neo4j Bolt Driver 5 .x for JavaScript" ,
39
+ "title" : " Neo4j Bolt Driver 6 .x for JavaScript" ,
40
40
"repository" : " https://github.com/neo4j/neo4j-javascript-driver"
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments