package com.engine.secret.util;

/**
 * @Author weaver_cl
 * @Description:
 * @Date 2023/2/21
 * @Version V1.0
 **/
public class ExceptionUtil {
    public static String getRealMessage(Throwable e) {
        while (e != null) {
            Throwable cause = e.getCause();
            if (cause == null) {
                return e.getMessage();
            }
            e = cause;
        }
        return "";
    }
}
