Skip to content

Commit 2e9e45e

Browse files
committed
Restore translation of IllegalArgumentException for JPA
See gh-35111
1 parent b3dc752 commit 2e9e45e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-orm/src/main/java/org/springframework/orm/jpa/hibernate/HibernateExceptionTranslator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ public void setJdbcExceptionTranslator(@Nullable SQLExceptionTranslator exceptio
108108
if (ex.getCause() instanceof HibernateException hibernateEx) {
109109
return convertHibernateAccessException(hibernateEx);
110110
}
111-
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
112111
}
113-
return null;
112+
return EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(ex);
114113
}
115114

116115
/**

0 commit comments

Comments
 (0)