MCPcopy Index your code
hub / github.com/apache/groovy / handleError

Method handleError

subprojects/groovy-sql/src/main/java/groovy/sql/Sql.java:5000–5005  ·  view source on GitHub ↗
(Connection connection, Throwable t)

Source from the content-addressed store, hash-verified

4998 }
4999
5000 private static void handleError(Connection connection, Throwable t) throws SQLException {
5001 if (connection != null) {
5002 LOG.warning("Rolling back due to: " + t.getMessage());
5003 connection.rollback();
5004 }
5005 }
5006
5007 private static void callClosurePossiblyWithConnection(Closure closure, Connection connection) {
5008 if (closure.getMaximumNumberOfParameters() == 1) {

Callers 1

withTransactionMethod · 0.95

Calls 2

rollbackMethod · 0.65
getMessageMethod · 0.45

Tested by

no test coverage detected