File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
main/java/org/neo4j/driver/internal
test/java/org/neo4j/driver/internal Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3535import org .neo4j .driver .v1 .exceptions .ClientException ;
3636import org .neo4j .driver .v1 .exceptions .ConnectionFailureException ;
3737import org .neo4j .driver .v1 .exceptions .ServiceUnavailableException ;
38+ import org .neo4j .driver .v1 .exceptions .SessionExpiredException ;
3839import org .neo4j .driver .v1 .util .Function ;
3940
4041import static java .lang .String .format ;
@@ -292,7 +293,7 @@ private Connection acquireReadConnection()
292293 }
293294 }
294295
295- throw new ConnectionFailureException ( "Failed to connect to any read server" );
296+ throw new SessionExpiredException ( "Failed to connect to any read server" );
296297 }
297298
298299 private Connection acquireWriteConnection ()
@@ -311,7 +312,7 @@ private Connection acquireWriteConnection()
311312 }
312313 }
313314
314- throw new ConnectionFailureException ( "Failed to connect to any write server" );
315+ throw new SessionExpiredException ( "Failed to connect to any write server" );
315316 }
316317
317318 @ Override
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ public void shouldForgetEndpointsOnFailedSessionAcquisition()
545545 driver .session ( AccessMode .READ );
546546 fail ();
547547 }
548- catch ( ConnectionFailureException e )
548+ catch ( SessionExpiredException e )
549549 {
550550 //ignore
551551 }
You can’t perform that action at this time.
0 commit comments