Skip to content

Commit 1e64dda

Browse files
authored
tSabilize GQL Error Properties (#1286)
1 parent ad1fb21 commit 1e64dda

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

packages/core/src/error.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import { DiagnosticRecord, rawPolyfilledDiagnosticRecord } from './gql-constants
2424
export type ErrorClassification = 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN'
2525
/**
2626
* @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification
27-
* @experimental this is part of the preview of GQL-compliant errors
2827
*/
2928

3029
const errorClassification: { [key in ErrorClassification]: key } = {
@@ -74,7 +73,6 @@ type Neo4jErrorCode =
7473

7574
/**
7675
* 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
7876
*/
7977
class GQLError extends Error {
8078
gqlStatus: string
@@ -111,39 +109,34 @@ class GQLError extends Error {
111109
* The GQL Status code
112110
*
113111
* @type {string}
114-
* @experimental this property is part of the preview of GQL-compliant errors
115112
* @public
116113
*/
117114
this.gqlStatus = gqlStatus
118115
/**
119116
* The GQL Status Description
120117
*
121118
* @type {string}
122-
* @experimental this property is part of the preview of GQL-compliant errors
123119
* @public
124120
*/
125121
this.gqlStatusDescription = gqlStatusDescription
126122
/**
127123
* The GQL diagnostic record
128124
*
129125
* @type {DiagnosticRecord}
130-
* @experimental this property is part of the preview of GQL-compliant errors
131126
* @public
132127
*/
133128
this.diagnosticRecord = diagnosticRecord
134129
/**
135130
* The GQL error classification, extracted from the diagnostic record
136131
*
137132
* @type {ErrorClassification}
138-
* @experimental this property is part of the preview of GQL-compliant errors
139133
* @public
140134
*/
141135
this.classification = _extractClassification(this.diagnosticRecord)
142136
/**
143137
* The GQL error classification, extracted from the diagnostic record as a raw string
144138
*
145139
* @type {string}
146-
* @experimental this property is part of the preview of GQL-compliant errors
147140
* @public
148141
*/
149142
this.rawClassification = diagnosticRecord?._classification ?? undefined
@@ -155,7 +148,6 @@ class GQLError extends Error {
155148
* The goal of this method is provide a serialized object for human inspection.
156149
*
157150
* @type {string}
158-
* @experimental this is part of the preview of GQL-compliant errors
159151
* @public
160152
*/
161153
public get diagnosticRecordAsJsonString (): string {
@@ -236,7 +228,6 @@ function newError (message: string, code?: Neo4jErrorCode, cause?: Error, gqlSta
236228
* @param {String} [gqlStatusDescription]
237229
* @param {DiagnosticRecord} diagnosticRecord - the error message
238230
* @return {Neo4jError} an {@link Neo4jError}
239-
* @experimental this is part of the preview of GQL-compliant errors
240231
* @private
241232
*/
242233
function newGQLError (message: string, cause?: Error, gqlStatus?: string, gqlStatusDescription?: string, diagnosticRecord?: DiagnosticRecord): GQLError {

packages/neo4j-driver-deno/lib/core/error.ts

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)