presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/backup/BackupOperationStats.java/BackupOperationStats/run
class BackupOperationStats:    public <V> V run(Supplier<V> supplier)
    {
        try (TimeStat.BlockTimer ignored = time.time()) {
            V value = supplier.get();
            successes.update(1);
            return value;
        }
        catch (PrestoException e) {
            if (e.getErrorCode().equals(RAPTOR_BACKUP_NOT_FOUND.toErrorCode())) {
                successes.update(1);
            }
            else if (e.getErrorCode().equals(RAPTOR_BACKUP_TIMEOUT.toErrorCode())) {
                timeouts.update(1);
            }
            else {
                failures.update(1);
            }
            throw e;
        }
    }