Skip to content

Commit af9083f

Browse files
author
Zhen Li
committed
Fix compilation error
1 parent f9c6125 commit af9083f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/InternalDriver.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.neo4j.driver.v1.Config;
2727
import org.neo4j.driver.v1.Driver;
2828
import org.neo4j.driver.v1.Session;
29+
import org.neo4j.driver.v1.exceptions.ClientException;
2930
import org.neo4j.driver.v1.exceptions.Neo4jException;
3031

3132
public class InternalDriver implements Driver
@@ -58,6 +59,13 @@ public Session session()
5859
*/
5960
public void close() throws Neo4jException
6061
{
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+
}
6270
}
6371
}

0 commit comments

Comments
 (0)