diff --git a/packages/core/src/error.ts b/packages/core/src/error.ts index 40386ddf8..2cb7065dd 100644 --- a/packages/core/src/error.ts +++ b/packages/core/src/error.ts @@ -24,7 +24,6 @@ import { DiagnosticRecord, rawPolyfilledDiagnosticRecord } from './gql-constants export type ErrorClassification = 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' /** * @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification - * @experimental this is part of the preview of GQL-compliant errors */ const errorClassification: { [key in ErrorClassification]: key } = { @@ -74,7 +73,6 @@ type Neo4jErrorCode = /** * Class for nested errors, to be used as causes in {@link Neo4jError} - * @experimental this class is part of the preview of GQL-compliant errors */ class GQLError extends Error { gqlStatus: string @@ -111,7 +109,6 @@ class GQLError extends Error { * The GQL Status code * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.gqlStatus = gqlStatus @@ -119,7 +116,6 @@ class GQLError extends Error { * The GQL Status Description * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.gqlStatusDescription = gqlStatusDescription @@ -127,7 +123,6 @@ class GQLError extends Error { * The GQL diagnostic record * * @type {DiagnosticRecord} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.diagnosticRecord = diagnosticRecord @@ -135,7 +130,6 @@ class GQLError extends Error { * The GQL error classification, extracted from the diagnostic record * * @type {ErrorClassification} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.classification = _extractClassification(this.diagnosticRecord) @@ -143,7 +137,6 @@ class GQLError extends Error { * The GQL error classification, extracted from the diagnostic record as a raw string * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.rawClassification = diagnosticRecord?._classification ?? undefined @@ -155,7 +148,6 @@ class GQLError extends Error { * The goal of this method is provide a serialized object for human inspection. * * @type {string} - * @experimental this is part of the preview of GQL-compliant errors * @public */ public get diagnosticRecordAsJsonString (): string { @@ -236,7 +228,6 @@ function newError (message: string, code?: Neo4jErrorCode, cause?: Error, gqlSta * @param {String} [gqlStatusDescription] * @param {DiagnosticRecord} diagnosticRecord - the error message * @return {Neo4jError} an {@link Neo4jError} - * @experimental this is part of the preview of GQL-compliant errors * @private */ function newGQLError (message: string, cause?: Error, gqlStatus?: string, gqlStatusDescription?: string, diagnosticRecord?: DiagnosticRecord): GQLError { diff --git a/packages/neo4j-driver-deno/lib/core/error.ts b/packages/neo4j-driver-deno/lib/core/error.ts index b00bb92dc..5ec7e8d94 100644 --- a/packages/neo4j-driver-deno/lib/core/error.ts +++ b/packages/neo4j-driver-deno/lib/core/error.ts @@ -24,7 +24,6 @@ import { DiagnosticRecord, rawPolyfilledDiagnosticRecord } from './gql-constants export type ErrorClassification = 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' /** * @typedef { 'DATABASE_ERROR' | 'CLIENT_ERROR' | 'TRANSIENT_ERROR' | 'UNKNOWN' } ErrorClassification - * @experimental this is part of the preview of GQL-compliant errors */ const errorClassification: { [key in ErrorClassification]: key } = { @@ -74,7 +73,6 @@ type Neo4jErrorCode = /** * Class for nested errors, to be used as causes in {@link Neo4jError} - * @experimental this class is part of the preview of GQL-compliant errors */ class GQLError extends Error { gqlStatus: string @@ -111,7 +109,6 @@ class GQLError extends Error { * The GQL Status code * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.gqlStatus = gqlStatus @@ -119,7 +116,6 @@ class GQLError extends Error { * The GQL Status Description * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.gqlStatusDescription = gqlStatusDescription @@ -127,7 +123,6 @@ class GQLError extends Error { * The GQL diagnostic record * * @type {DiagnosticRecord} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.diagnosticRecord = diagnosticRecord @@ -135,7 +130,6 @@ class GQLError extends Error { * The GQL error classification, extracted from the diagnostic record * * @type {ErrorClassification} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.classification = _extractClassification(this.diagnosticRecord) @@ -143,7 +137,6 @@ class GQLError extends Error { * The GQL error classification, extracted from the diagnostic record as a raw string * * @type {string} - * @experimental this property is part of the preview of GQL-compliant errors * @public */ this.rawClassification = diagnosticRecord?._classification ?? undefined @@ -155,7 +148,6 @@ class GQLError extends Error { * The goal of this method is provide a serialized object for human inspection. * * @type {string} - * @experimental this is part of the preview of GQL-compliant errors * @public */ public get diagnosticRecordAsJsonString (): string { @@ -236,7 +228,6 @@ function newError (message: string, code?: Neo4jErrorCode, cause?: Error, gqlSta * @param {String} [gqlStatusDescription] * @param {DiagnosticRecord} diagnosticRecord - the error message * @return {Neo4jError} an {@link Neo4jError} - * @experimental this is part of the preview of GQL-compliant errors * @private */ function newGQLError (message: string, cause?: Error, gqlStatus?: string, gqlStatusDescription?: string, diagnosticRecord?: DiagnosticRecord): GQLError {