[jOOQ/jOOQ#10435] DSLContext.connection() and similar methods should not wrap RuntimeException in DataAccessException

This commit is contained in:
Lukas Eder 2020-07-22 15:10:46 +02:00
parent 6f4cb65f56
commit 06f15008cc

View File

@ -675,6 +675,9 @@ public class DefaultDSLContext extends AbstractScope implements DSLContext, Seri
try {
return callable.run(connection);
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DataAccessException("Error while running ConnectionCallable", e);
}