diff --git a/driver/clirr-ignored-differences.xml b/driver/clirr-ignored-differences.xml index 53c2bfd808..080ae04669 100644 --- a/driver/clirr-ignored-differences.xml +++ b/driver/clirr-ignored-differences.xml @@ -328,4 +328,10 @@ java.util.Set lastBookmarks() + + org/neo4j/driver/exceptions/Neo4jException + 7002 + java.lang.String neo4jErrorCode() + + diff --git a/driver/src/main/java/org/neo4j/driver/exceptions/Neo4jException.java b/driver/src/main/java/org/neo4j/driver/exceptions/Neo4jException.java index a9eaa5e12a..c54900f748 100644 --- a/driver/src/main/java/org/neo4j/driver/exceptions/Neo4jException.java +++ b/driver/src/main/java/org/neo4j/driver/exceptions/Neo4jException.java @@ -19,7 +19,7 @@ package org.neo4j.driver.exceptions; /** - * This is the base class for all exceptions caused as part of communication with the remote Neo4j server. + * This is the base class for Neo4j exceptions. * * @since 1.0 */ @@ -45,17 +45,6 @@ public Neo4jException(String code, String message, Throwable cause) { this.code = code; } - /** - * Access the standard Neo4j Status Code for this exception, you can use this to refer to the Neo4j manual for - * details on what caused the error. - * - * @return the Neo4j Status Code for this exception, or 'N/A' if none is available - */ - @Deprecated - public String neo4jErrorCode() { - return code; - } - /** * Access the status code for this exception. The Neo4j manual can * provide further details on the available codes and their meanings.