@@ -24,7 +24,6 @@ import { DiagnosticRecord, rawPolyfilledDiagnosticRecord } from './gql-constants
24
24
export type ErrorClassification = 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN'
25
25
/**
26
26
* @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification
27
- * @experimental this is part of the preview of GQL-compliant errors
28
27
*/
29
28
30
29
const errorClassification : { [ key in ErrorClassification ] : key } = {
@@ -74,7 +73,6 @@ type Neo4jErrorCode =
74
73
75
74
/**
76
75
* Class for nested errors, to be used as causes in {@link Neo4jError}
77
- * @experimental this class is part of the preview of GQL-compliant errors
78
76
*/
79
77
class GQLError extends Error {
80
78
gqlStatus : string
@@ -111,39 +109,34 @@ class GQLError extends Error {
111
109
* The GQL Status code
112
110
*
113
111
* @type {string }
114
- * @experimental this property is part of the preview of GQL-compliant errors
115
112
* @public
116
113
*/
117
114
this . gqlStatus = gqlStatus
118
115
/**
119
116
* The GQL Status Description
120
117
*
121
118
* @type {string }
122
- * @experimental this property is part of the preview of GQL-compliant errors
123
119
* @public
124
120
*/
125
121
this . gqlStatusDescription = gqlStatusDescription
126
122
/**
127
123
* The GQL diagnostic record
128
124
*
129
125
* @type {DiagnosticRecord }
130
- * @experimental this property is part of the preview of GQL-compliant errors
131
126
* @public
132
127
*/
133
128
this . diagnosticRecord = diagnosticRecord
134
129
/**
135
130
* The GQL error classification, extracted from the diagnostic record
136
131
*
137
132
* @type {ErrorClassification }
138
- * @experimental this property is part of the preview of GQL-compliant errors
139
133
* @public
140
134
*/
141
135
this . classification = _extractClassification ( this . diagnosticRecord )
142
136
/**
143
137
* The GQL error classification, extracted from the diagnostic record as a raw string
144
138
*
145
139
* @type {string }
146
- * @experimental this property is part of the preview of GQL-compliant errors
147
140
* @public
148
141
*/
149
142
this . rawClassification = diagnosticRecord ?. _classification ?? undefined
@@ -155,7 +148,6 @@ class GQLError extends Error {
155
148
* The goal of this method is provide a serialized object for human inspection.
156
149
*
157
150
* @type {string }
158
- * @experimental this is part of the preview of GQL-compliant errors
159
151
* @public
160
152
*/
161
153
public get diagnosticRecordAsJsonString ( ) : string {
@@ -236,7 +228,6 @@ function newError (message: string, code?: Neo4jErrorCode, cause?: Error, gqlSta
236
228
* @param {String } [gqlStatusDescription]
237
229
* @param {DiagnosticRecord } diagnosticRecord - the error message
238
230
* @return {Neo4jError } an {@link Neo4jError}
239
- * @experimental this is part of the preview of GQL-compliant errors
240
231
* @private
241
232
*/
242
233
function newGQLError ( message : string , cause ?: Error , gqlStatus ?: string , gqlStatusDescription ?: string , diagnosticRecord ?: DiagnosticRecord ) : GQLError {
0 commit comments