presto-base-jdbc/src/main/java/io/prestosql/plugin/jdbc/jmx/JdbcApiStats.java/JdbcApiStats/wrap
class JdbcApiStats:    public <V, E extends Exception> V wrap(ThrowingCallable<V, E> callable)
            throws E
    {
        try (TimeStat.BlockTimer ignored = time.time()) {
            return callable.call();
        }
        catch (Exception e) {
            failures.update(1);
            throw e;
        }
    }