File tree Expand file tree Collapse file tree 5 files changed +11
-6
lines changed
main/java/org/neo4j/driver
test/java/org/neo4j/driver/internal Expand file tree Collapse file tree 5 files changed +11
-6
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 @@ -142,7 +142,7 @@ public static class ConfigBuilder
142
142
private long idleTimeBeforeConnectionTest = 200 ;
143
143
private EncryptionLevel encruptionLevel = EncryptionLevel .REQUIRED ;
144
144
private TrustStrategy trustStrategy = trustOnFirstUse (
145
- new File ( getProperty ( "user.home" ), ".neo4j/neo4j_known_hosts " ) );
145
+ new File ( getProperty ( "user.home" ), ".neo4j" + File . separator + "known_hosts " ) );
146
146
147
147
private ConfigBuilder () {}
148
148
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
}
Original file line number Diff line number Diff line change 31
31
32
32
public class ConfigTest
33
33
{
34
- private static final File DEFAULT_KNOWN_HOSTS = new File ( getProperty ( "user.home" ), ".neo4j/neo4j_known_hosts" );
34
+ private static final File DEFAULT_KNOWN_HOSTS = new File ( getProperty ( "user.home" ),
35
+ ".neo4j" + File .separator + "known_hosts" );
35
36
36
37
@ Test
37
38
public void shouldDefaultToKnownCerts ()
You can’t perform that action at this time.
0 commit comments