presto-thrift/src/main/java/io/prestosql/plugin/thrift/util/ThriftExceptions.java/ThriftExceptions/catchingThriftException
class ThriftExceptions:    public static <T> ListenableFuture<T> catchingThriftException(ListenableFuture<T> future)
    {
        return catchingAsync(future, Exception.class, e -> immediateFailedFuture(toPrestoException(e)), directExecutor());
    }