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 26
26
import org .neo4j .driver .v1 .Config ;
27
27
import org .neo4j .driver .v1 .Driver ;
28
28
import org .neo4j .driver .v1 .Session ;
29
+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
29
30
30
31
public class InternalDriver implements Driver
31
32
{
@@ -55,7 +56,7 @@ public Session session()
55
56
* Close all the resources assigned to this driver
56
57
* @throws Exception any error that might happen when releasing all resources
57
58
*/
58
- public void close () throws Exception
59
+ public void close () throws Neo4jException
59
60
{
60
61
connections .close ();
61
62
}
Original file line number Diff line number Diff line change 36
36
import org .neo4j .driver .v1 .AuthToken ;
37
37
import org .neo4j .driver .v1 .Config ;
38
38
import org .neo4j .driver .v1 .exceptions .ClientException ;
39
+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
39
40
40
41
/**
41
42
* A basic connection pool that optimizes for threads being long-lived, acquiring/releasing many connections.
@@ -156,7 +157,7 @@ private static Collection<Connector> loadConnectors()
156
157
}
157
158
158
159
@ Override
159
- public void close () throws Exception
160
+ public void close () throws Neo4jException
160
161
{
161
162
for ( ThreadCachingPool <PooledConnection > pool : pools .values () )
162
163
{
Original file line number Diff line number Diff line change 20
20
21
21
import java .net .URI ;
22
22
23
+ import org .neo4j .driver .v1 .exceptions .Neo4jException ;
24
+
23
25
/**
24
26
* A Neo4j database driver, through which you can create {@link Session sessions} to run statements against the database.
25
27
* <p>
@@ -78,7 +80,7 @@ public interface Driver extends AutoCloseable
78
80
79
81
/**
80
82
* 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
82
84
*/
83
- void close () throws Exception ;
85
+ void close () throws Neo4jException ;
84
86
}
You can’t perform that action at this time.
0 commit comments