Skip to content

Commit 79985f2

Browse files
authored
Delete Neo4jException.neo4jErrorCode and update documentation (#1249)
* Delete Neo4jException.neo4jErrorCode and update documentation This update deletes the deprecated `Neo4jException.neo4jErrorCode()` method and updates documentation. * Update clirr-ignored-differences.xml
1 parent 1a286f1 commit 79985f2

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

driver/clirr-ignored-differences.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,4 +328,10 @@
328328
<method>java.util.Set lastBookmarks()</method>
329329
</difference>
330330

331+
<difference>
332+
<className>org/neo4j/driver/exceptions/Neo4jException</className>
333+
<differenceType>7002</differenceType>
334+
<method>java.lang.String neo4jErrorCode()</method>
335+
</difference>
336+
331337
</differences>

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
package org.neo4j.driver.exceptions;
2020

2121
/**
22-
* This is the base class for all exceptions caused as part of communication with the remote Neo4j server.
22+
* This is the base class for Neo4j exceptions.
2323
*
2424
* @since 1.0
2525
*/
@@ -45,17 +45,6 @@ public Neo4jException(String code, String message, Throwable cause) {
4545
this.code = code;
4646
}
4747

48-
/**
49-
* Access the standard Neo4j Status Code for this exception, you can use this to refer to the Neo4j manual for
50-
* details on what caused the error.
51-
*
52-
* @return the Neo4j Status Code for this exception, or 'N/A' if none is available
53-
*/
54-
@Deprecated
55-
public String neo4jErrorCode() {
56-
return code;
57-
}
58-
5948
/**
6049
* Access the status code for this exception. The Neo4j manual can
6150
* provide further details on the available codes and their meanings.

0 commit comments

Comments
 (0)