File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
driver/src/main/java/org/neo4j/driver Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 2626import org .neo4j .driver .v1 .Config ;
2727import org .neo4j .driver .v1 .Driver ;
2828import org .neo4j .driver .v1 .Session ;
29+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
2930
3031public class InternalDriver implements Driver
3132{
@@ -55,7 +56,7 @@ public Session session()
5556 * Close all the resources assigned to this driver
5657 * @throws Exception any error that might happen when releasing all resources
5758 */
58- public void close () throws Exception
59+ public void close () throws Neo4jException
5960 {
6061 connections .close ();
6162 }
Original file line number Diff line number Diff line change 3636import org .neo4j .driver .v1 .AuthToken ;
3737import org .neo4j .driver .v1 .Config ;
3838import org .neo4j .driver .v1 .exceptions .ClientException ;
39+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
3940
4041/**
4142 * A basic connection pool that optimizes for threads being long-lived, acquiring/releasing many connections.
@@ -156,7 +157,7 @@ private static Collection<Connector> loadConnectors()
156157 }
157158
158159 @ Override
159- public void close () throws Exception
160+ public void close () throws Neo4jException
160161 {
161162 for ( ThreadCachingPool <PooledConnection > pool : pools .values () )
162163 {
Original file line number Diff line number Diff line change 2020
2121import java .net .URI ;
2222
23+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
24+
2325/**
2426 * A Neo4j database driver, through which you can create {@link Session sessions} to run statements against the database.
2527 * <p>
@@ -78,7 +80,7 @@ public interface Driver extends AutoCloseable
7880
7981 /**
8082 * Close all the resources assigned to this driver
81- * @throws Exception any error that might happen when releasing all resources
83+ * @throws Neo4jException any error that might happen when releasing all resources
8284 */
83- void close () throws Exception ;
85+ void close () throws Neo4jException ;
8486}
You can’t perform that action at this time.
0 commit comments