当已知异常信息包含更多异常的时候,将异常信息打印到日志中
This commit is contained in:
@@ -43,10 +43,13 @@ public class ExceptionUtils {
|
|||||||
}
|
}
|
||||||
if (StringUtils.startsWith(e.getMessage(), "msg:")) {
|
if (StringUtils.startsWith(e.getMessage(), "msg:")) {
|
||||||
message = StringUtils.replace(e.getMessage(), "msg:", "");
|
message = StringUtils.replace(e.getMessage(), "msg:", "");
|
||||||
break;
|
} else if ("com.jeesite.common.service.ServiceException".equals(e.getClass().getName())){
|
||||||
}else if ("com.jeesite.common.service.ServiceException"
|
|
||||||
.equals(e.getClass().getName())){
|
|
||||||
message = e.getMessage();
|
message = e.getMessage();
|
||||||
|
}
|
||||||
|
if (StringUtils.isNotBlank(message)){
|
||||||
|
if (e.getSuppressed() != null && e.getCause() != null){
|
||||||
|
ex.addSuppressed(e.getCause());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
e = e.getCause();
|
e = e.getCause();
|
||||||
|
|||||||
Reference in New Issue
Block a user