presto-main/src/main/java/io/prestosql/server/remotetask/RequestErrorTracker.java/RequestErrorTracker/isExpectedError
class RequestErrorTracker:    private static boolean isExpectedError(Throwable t)
    {
        while (t != null) {
            if ((t instanceof SocketException) ||
                    (t instanceof SocketTimeoutException) ||
                    (t instanceof EOFException) ||
                    (t instanceof TimeoutException) ||
                    (t instanceof ServiceUnavailableException)) {
                return true;
            }
            t = t.getCause();
        }
        return false;
    }