File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/java/org/springframework/data/neo4j/core/support Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2020
2121import org .apiguardian .api .API ;
2222import org .neo4j .driver .exceptions .DiscoveryException ;
23+ import org .neo4j .driver .exceptions .RetryableException ;
2324import org .neo4j .driver .exceptions .ServiceUnavailableException ;
2425import org .neo4j .driver .exceptions .SessionExpiredException ;
2526import org .neo4j .driver .exceptions .TransientException ;
@@ -43,6 +44,10 @@ public final class RetryExceptionPredicate implements Predicate<Throwable> {
4344 @ Override
4445 public boolean test (Throwable throwable ) {
4546
47+ if (throwable instanceof RetryableException ) {
48+ return true ;
49+ }
50+
4651 if (throwable instanceof IllegalStateException ) {
4752 String msg = throwable .getMessage ();
4853 return msg != null && RETRYABLE_ILLEGAL_STATE_MESSAGES .contains (msg );
You can’t perform that action at this time.
0 commit comments