[jOOQ/jOOQ#10435] DSLContext.connection() and similar methods should not wrap RuntimeException in DataAccessException
This commit is contained in:
parent
6f4cb65f56
commit
06f15008cc
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user