Skip to content

Commit 8a841b5

Browse files
authored
feat(gql-error): make GQL Error GA (#1673)
This update makes GQL Error GA.
1 parent ea6d569 commit 8a841b5

10 files changed

+0
-28
lines changed

driver/src/main/java/org/neo4j/driver/exceptions/AuthenticationException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* Failed to authenticate the driver to the server due to bad credentials provided.
@@ -59,7 +58,6 @@ public AuthenticationException(String code, String message) {
5958
* @param cause the cause
6059
* @since 5.26.0
6160
*/
62-
@Preview(name = "GQL-error")
6361
public AuthenticationException(
6462
String gqlStatus,
6563
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/AuthorizationExpiredException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* The authorization info maintained on the server has expired. The client should reconnect.
@@ -63,7 +62,6 @@ public AuthorizationExpiredException(String code, String message) {
6362
* @param cause the cause
6463
* @since 5.26.0
6564
*/
66-
@Preview(name = "GQL-error")
6765
public AuthorizationExpiredException(
6866
String gqlStatus,
6967
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/ClientException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* A <em>ClientException</em> indicates that the client has carried out an operation incorrectly.
@@ -88,7 +87,6 @@ public ClientException(String code, String message) {
8887
* @param cause the cause
8988
* @since 5.26.0
9089
*/
91-
@Preview(name = "GQL-error")
9290
public ClientException(
9391
String gqlStatus,
9492
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/DatabaseException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* A <em>DatabaseException</em> indicates that there is a problem within the underlying database.
@@ -57,7 +56,6 @@ public DatabaseException(String code, String message) {
5756
* @param cause the cause
5857
* @since 5.26.0
5958
*/
60-
@Preview(name = "GQL-error")
6159
public DatabaseException(
6260
String gqlStatus,
6361
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/FatalDiscoveryException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* This error indicate a fatal problem to obtain routing tables such as the routing table for a specified database does not exist.
@@ -73,7 +72,6 @@ public FatalDiscoveryException(String code, String message) {
7372
* @param cause the cause
7473
* @since 5.26.0
7574
*/
76-
@Preview(name = "GQL-error")
7775
public FatalDiscoveryException(
7876
String gqlStatus,
7977
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/Neo4jException.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import org.neo4j.driver.Value;
2424
import org.neo4j.driver.internal.GqlStatusError;
2525
import org.neo4j.driver.types.TypeSystem;
26-
import org.neo4j.driver.util.Preview;
2726

2827
/**
2928
* This is the base class for Neo4j exceptions.
@@ -131,7 +130,6 @@ public Neo4jException(String code, String message, Throwable cause) {
131130
* @param cause the cause
132131
* @since 5.26.0
133132
*/
134-
@Preview(name = "GQL-error")
135133
public Neo4jException(
136134
String gqlStatus,
137135
String statusDescription,
@@ -176,7 +174,6 @@ public String code() {
176174
* @return the GQLSTATUS value
177175
* @since 5.26.0
178176
*/
179-
@Preview(name = "GQL-error")
180177
public String gqlStatus() {
181178
return gqlStatus;
182179
}
@@ -187,7 +184,6 @@ public String gqlStatus() {
187184
* @return the GQLSTATUS description
188185
* @since 5.26.0
189186
*/
190-
@Preview(name = "GQL-error")
191187
public String statusDescription() {
192188
return statusDescription;
193189
}
@@ -198,7 +194,6 @@ public String statusDescription() {
198194
* @return the GQL diagnostic record
199195
* @since 5.26.0
200196
*/
201-
@Preview(name = "GQL-error")
202197
public Map<String, Value> diagnosticRecord() {
203198
return diagnosticRecord;
204199
}
@@ -213,7 +208,6 @@ public Map<String, Value> diagnosticRecord() {
213208
* @see #rawClassification()
214209
* @since 5.26.0
215210
*/
216-
@Preview(name = "GQL-error")
217211
public Optional<GqlStatusErrorClassification> classification() {
218212
return Optional.ofNullable(classification);
219213
}
@@ -229,7 +223,6 @@ public Optional<GqlStatusErrorClassification> classification() {
229223
* @see #diagnosticRecord()
230224
* @since 5.26.0
231225
*/
232-
@Preview(name = "GQL-error")
233226
public Optional<String> rawClassification() {
234227
return Optional.ofNullable(rawClassification);
235228
}
@@ -240,7 +233,6 @@ public Optional<String> rawClassification() {
240233
* @return an {@link Optional} of GQL error cause
241234
* @since 5.26.0
242235
*/
243-
@Preview(name = "GQL-error")
244236
public Optional<Neo4jException> gqlCause() {
245237
return Optional.ofNullable(findFirstGqlCause(this));
246238
}
@@ -253,7 +245,6 @@ public Optional<Neo4jException> gqlCause() {
253245
* @return {@literal true} if yes or {@literal false} otherwise
254246
* @since 5.28.8
255247
*/
256-
@Preview(name = "GQL-error")
257248
public boolean containsGqlStatus(String gqlStatus) {
258249
return findByGqlStatus(this, gqlStatus) != null;
259250
}
@@ -266,7 +257,6 @@ public boolean containsGqlStatus(String gqlStatus) {
266257
* @return an {@link Optional} of {@link Neo4jException} or {@link Optional#empty()} otherwise
267258
* @since 5.28.8
268259
*/
269-
@Preview(name = "GQL-error")
270260
public Optional<Neo4jException> findByGqlStatus(String gqlStatus) {
271261
return Optional.ofNullable(findByGqlStatus(this, gqlStatus));
272262
}

driver/src/main/java/org/neo4j/driver/exceptions/SecurityException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* Failed to communicate with the server due to security errors.
@@ -67,7 +66,6 @@ public SecurityException(String message, Throwable t) {
6766
* @param cause the cause
6867
* @since 5.26.0
6968
*/
70-
@Preview(name = "GQL-error")
7169
public SecurityException(
7270
String gqlStatus,
7371
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/TokenExpiredException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* The provided token has expired.
@@ -59,7 +58,6 @@ public TokenExpiredException(String code, String message) {
5958
* @param cause the cause
6059
* @since 5.26.0
6160
*/
62-
@Preview(name = "GQL-error")
6361
public TokenExpiredException(
6462
String gqlStatus,
6563
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/TransactionTerminatedException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* Indicates that the transaction has been terminated.
@@ -98,7 +97,6 @@ public TransactionTerminatedException(String message, Throwable cause) {
9897
* @param cause the cause
9998
* @since 5.26.0
10099
*/
101-
@Preview(name = "GQL-error")
102100
public TransactionTerminatedException(
103101
String gqlStatus,
104102
String statusDescription,

driver/src/main/java/org/neo4j/driver/exceptions/TransientException.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import java.util.Map;
2121
import org.neo4j.driver.Value;
2222
import org.neo4j.driver.internal.GqlStatusError;
23-
import org.neo4j.driver.util.Preview;
2423

2524
/**
2625
* A <em>TransientException</em> signals a temporary fault that may be worked around by retrying. The error code provided can be used to determine further
@@ -58,7 +57,6 @@ public TransientException(String code, String message) {
5857
* @param cause the cause
5958
* @since 5.26.0
6059
*/
61-
@Preview(name = "GQL-error")
6260
public TransientException(
6361
String gqlStatus,
6462
String statusDescription,

0 commit comments

Comments
 (0)