Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* Failed to authenticate the driver to the server due to bad credentials provided.
Expand Down Expand Up @@ -59,7 +58,6 @@ public AuthenticationException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public AuthenticationException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* The authorization info maintained on the server has expired. The client should reconnect.
Expand Down Expand Up @@ -63,7 +62,6 @@ public AuthorizationExpiredException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public AuthorizationExpiredException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* A <em>ClientException</em> indicates that the client has carried out an operation incorrectly.
Expand Down Expand Up @@ -88,7 +87,6 @@ public ClientException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public ClientException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* A <em>DatabaseException</em> indicates that there is a problem within the underlying database.
Expand Down Expand Up @@ -57,7 +56,6 @@ public DatabaseException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public DatabaseException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* This error indicate a fatal problem to obtain routing tables such as the routing table for a specified database does not exist.
Expand Down Expand Up @@ -73,7 +72,6 @@ public FatalDiscoveryException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public FatalDiscoveryException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.types.TypeSystem;
import org.neo4j.driver.util.Preview;

/**
* This is the base class for Neo4j exceptions.
Expand Down Expand Up @@ -131,7 +130,6 @@ public Neo4jException(String code, String message, Throwable cause) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public Neo4jException(
String gqlStatus,
String statusDescription,
Expand Down Expand Up @@ -176,7 +174,6 @@ public String code() {
* @return the GQLSTATUS value
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public String gqlStatus() {
return gqlStatus;
}
Expand All @@ -187,7 +184,6 @@ public String gqlStatus() {
* @return the GQLSTATUS description
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public String statusDescription() {
return statusDescription;
}
Expand All @@ -198,7 +194,6 @@ public String statusDescription() {
* @return the GQL diagnostic record
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public Map<String, Value> diagnosticRecord() {
return diagnosticRecord;
}
Expand All @@ -213,7 +208,6 @@ public Map<String, Value> diagnosticRecord() {
* @see #rawClassification()
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public Optional<GqlStatusErrorClassification> classification() {
return Optional.ofNullable(classification);
}
Expand All @@ -229,7 +223,6 @@ public Optional<GqlStatusErrorClassification> classification() {
* @see #diagnosticRecord()
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public Optional<String> rawClassification() {
return Optional.ofNullable(rawClassification);
}
Expand All @@ -240,7 +233,6 @@ public Optional<String> rawClassification() {
* @return an {@link Optional} of GQL error cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public Optional<Neo4jException> gqlCause() {
return Optional.ofNullable(findFirstGqlCause(this));
}
Expand All @@ -253,7 +245,6 @@ public Optional<Neo4jException> gqlCause() {
* @return {@literal true} if yes or {@literal false} otherwise
* @since 5.28.8
*/
@Preview(name = "GQL-error")
public boolean containsGqlStatus(String gqlStatus) {
return findByGqlStatus(this, gqlStatus) != null;
}
Expand All @@ -266,7 +257,6 @@ public boolean containsGqlStatus(String gqlStatus) {
* @return an {@link Optional} of {@link Neo4jException} or {@link Optional#empty()} otherwise
* @since 5.28.8
*/
@Preview(name = "GQL-error")
public Optional<Neo4jException> findByGqlStatus(String gqlStatus) {
return Optional.ofNullable(findByGqlStatus(this, gqlStatus));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* Failed to communicate with the server due to security errors.
Expand Down Expand Up @@ -67,7 +66,6 @@ public SecurityException(String message, Throwable t) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public SecurityException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* The provided token has expired.
Expand Down Expand Up @@ -59,7 +58,6 @@ public TokenExpiredException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public TokenExpiredException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* Indicates that the transaction has been terminated.
Expand Down Expand Up @@ -98,7 +97,6 @@ public TransactionTerminatedException(String message, Throwable cause) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public TransactionTerminatedException(
String gqlStatus,
String statusDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Map;
import org.neo4j.driver.Value;
import org.neo4j.driver.internal.GqlStatusError;
import org.neo4j.driver.util.Preview;

/**
* 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
Expand Down Expand Up @@ -58,7 +57,6 @@ public TransientException(String code, String message) {
* @param cause the cause
* @since 5.26.0
*/
@Preview(name = "GQL-error")
public TransientException(
String gqlStatus,
String statusDescription,
Expand Down