public Throwable getRootCause()

in api/src/main/java/org/apache/rocketmq/remoting/api/exception/RemotingRuntimeException.java [87:95]


    public Throwable getRootCause() {
        Throwable rootCause = null;
        Throwable cause = getCause();
        while (cause != null && cause != rootCause) {
            rootCause = cause;
            cause = cause.getCause();
        }
        return rootCause;
    }