refactor: 将全局异常处理器未知异常的异常类型从 Exception 调整为 Throwable

This commit is contained in:
2023-08-15 23:36:26 +08:00
parent 487fa82306
commit 90e1c64db6
4 changed files with 61 additions and 61 deletions

View File

@@ -141,7 +141,7 @@ public class LogInterceptor implements HandlerInterceptor {
logDO.setErrorMsg(errorMsg);
}
// 记录异常详情
Exception exception = logContext.getException();
Throwable exception = logContext.getException();
if (null != exception) {
logDO.setStatus(LogStatusEnum.FAILURE);
logDO.setExceptionDetail(ExceptionUtil.stacktraceToString(exception, -1));