File tree 1 file changed +5
-0
lines changed
src/main/java/org/springframework/data/neo4j/core/support
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 20
20
21
21
import org .apiguardian .api .API ;
22
22
import org .neo4j .driver .exceptions .DiscoveryException ;
23
+ import org .neo4j .driver .exceptions .RetryableException ;
23
24
import org .neo4j .driver .exceptions .ServiceUnavailableException ;
24
25
import org .neo4j .driver .exceptions .SessionExpiredException ;
25
26
import org .neo4j .driver .exceptions .TransientException ;
@@ -43,6 +44,10 @@ public final class RetryExceptionPredicate implements Predicate<Throwable> {
43
44
@ Override
44
45
public boolean test (Throwable throwable ) {
45
46
47
+ if (throwable instanceof RetryableException ) {
48
+ return true ;
49
+ }
50
+
46
51
if (throwable instanceof IllegalStateException ) {
47
52
String msg = throwable .getMessage ();
48
53
return msg != null && RETRYABLE_ILLEGAL_STATE_MESSAGES .contains (msg );
You can’t perform that action at this time.
0 commit comments