public static String getAllExceptionMsg(Throwable e) {
        Throwable cause = e;
        StringBuilder strBuilder = new StringBuilder();
        
        while (cause != null && !StringUtils.isEmpty(cause.getMessage())) {
            strBuilder.append("caused: ").append(cause.getMessage()).append(';');
            cause = cause.getCause();
        }
        
        return strBuilder.toString();
    }
@Test
    void testGetAllExceptionMsg() {
        String msg = ExceptionUtil.getAllExceptionMsg(nacosRuntimeException);
        assertEquals("caused: errCode: 500, errMsg: Test ;caused: I'm caused exception.;", msg);
    }