Ecology-Dev-chaofa/FiveHzCenter/src/com/engine/hzzx/util/ExceptionUtil.java

21 lines
416 B
Java
Raw Normal View History

2025-09-29 10:39:10 +08:00
package com.engine.hzzx.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 "";
}
}