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 @@ -147,6 +147,13 @@ class GQLError extends Error {
147
147
* @public
148
148
*/
149
149
this . rawClassification = diagnosticRecord ?. _classification ?? undefined
150
+ /**
151
+ * Represents the name for the type of error, inherited from base JavaScript {@link Error}.
152
+ * Will be 'GQLError' for {@link GQLError}s and 'Neo4jError' for {@link Neo4jError}s.
153
+ *
154
+ * @type {string }
155
+ * @public
156
+ */
150
157
this . name = 'GQLError'
151
158
}
152
159
@@ -171,6 +178,11 @@ class Neo4jError extends GQLError {
171
178
* Optional error code. Will be populated when error originates in the database.
172
179
*/
173
180
code : string
181
+
182
+ /**
183
+ * Whether the request that caused this error can be safely retried without duplicate commits on the server.
184
+ * This does not apply when running auto-commit transactions using {@link Session#run}
185
+ */
174
186
retriable : boolean
175
187
176
188
/**
@@ -195,7 +207,21 @@ class Neo4jError extends GQLError {
195
207
*/
196
208
this . code = code
197
209
210
+ /**
211
+ * The name of the type of error.
212
+ *
213
+ * @type {string }
214
+ * @public
215
+ */
198
216
this . name = 'Neo4jError'
217
+
218
+ /**
219
+ * If the error is considered retriable.
220
+ * This does not apply when running auto-commit transactions using {@link Session#run}
221
+ *
222
+ * @type {boolean }
223
+ * @public
224
+ */
199
225
this . retriable = _isRetriableCode ( code )
200
226
}
201
227
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