private void checkStackTrace(Throwable e){
boolean save = false;
StringBuilder em = new StringBuilder("单据执行保存,事务回滚操作堆栈:").append("\r\n");
for (StackTraceElement st : e.getStackTrace()) {
if("SaveAction.java".equals(st.getFileName()) && "saveModelData".equals(st.getMethodName())){
save = true;
}
em.append("\t\t").append(st.toString()).append("\r\n");
}
if(save){
DNALogManager.getLogger("bap/bill/action").logInfo(null, em, false);
}
}
过滤堆栈信息输出特定异常堆栈
最新推荐文章于 2024-08-14 23:12:09 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)