We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c6125 commit af9083fCopy full SHA for af9083f
driver/src/main/java/org/neo4j/driver/internal/InternalDriver.java
@@ -26,6 +26,7 @@
26
import org.neo4j.driver.v1.Config;
27
import org.neo4j.driver.v1.Driver;
28
import org.neo4j.driver.v1.Session;
29
+import org.neo4j.driver.v1.exceptions.ClientException;
30
import org.neo4j.driver.v1.exceptions.Neo4jException;
31
32
public class InternalDriver implements Driver
@@ -58,6 +59,13 @@ public Session session()
58
59
*/
60
public void close() throws Neo4jException
61
{
- connections.close();
62
+ try
63
+ {
64
+ connections.close();
65
+ }
66
+ catch( Exception e )
67
68
+ throw new ClientException( "Failed to close driver.", e );
69
70
}
71
0 commit comments