presto-main/src/main/java/io/prestosql/ExceededMemoryLimitException.java/ExceededMemoryLimitException/exceededGlobalTotalLimit
class ExceededMemoryLimitException:    public static ExceededMemoryLimitException exceededGlobalTotalLimit(DataSize maxMemory)
    {
        return new ExceededMemoryLimitException(EXCEEDED_GLOBAL_MEMORY_LIMIT, format("Query exceeded distributed total memory limit of %s", maxMemory));
    }