File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/main/java/org/springframework/data/neo4j/repository/support Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 43
43
import org .springframework .dao .InvalidDataAccessResourceUsageException ;
44
44
import org .springframework .dao .NonTransientDataAccessResourceException ;
45
45
import org .springframework .dao .PermissionDeniedDataAccessException ;
46
- import org .springframework .dao .RecoverableDataAccessException ;
47
46
import org .springframework .dao .TransientDataAccessResourceException ;
48
47
import org .springframework .dao .support .PersistenceExceptionTranslator ;
49
48
@@ -71,9 +70,9 @@ public DataAccessException translateExceptionIfPossible(RuntimeException ex) {
71
70
} else if (ex instanceof DatabaseException ) {
72
71
return translateImpl ((Neo4jException ) ex , NonTransientDataAccessResourceException ::new );
73
72
} else if (ex instanceof ServiceUnavailableException ) {
74
- return translateImpl ((Neo4jException ) ex , NonTransientDataAccessResourceException ::new );
73
+ return translateImpl ((Neo4jException ) ex , TransientDataAccessResourceException ::new );
75
74
} else if (ex instanceof SessionExpiredException ) {
76
- return translateImpl ((Neo4jException ) ex , RecoverableDataAccessException ::new );
75
+ return translateImpl ((Neo4jException ) ex , TransientDataAccessResourceException ::new );
77
76
} else if (ex instanceof ProtocolException ) {
78
77
return translateImpl ((Neo4jException ) ex , NonTransientDataAccessResourceException ::new );
79
78
} else if (ex instanceof TransientException ) {
You can’t perform that action at this time.
0 commit comments