mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-24 20:57:21 +08:00
refactor: 将全局异常处理器未知异常的异常类型从 Exception 调整为 Throwable
This commit is contained in:
@@ -64,9 +64,9 @@ public class LogContextHolder {
|
||||
* @param e
|
||||
* 异常信息
|
||||
*/
|
||||
public static void setException(Exception e) {
|
||||
public static void setException(Throwable e) {
|
||||
LogContext logContext = get();
|
||||
if (logContext != null) {
|
||||
if (null != logContext) {
|
||||
logContext.setErrorMsg(e.getMessage());
|
||||
logContext.setException(e);
|
||||
}
|
||||
@@ -80,7 +80,7 @@ public class LogContextHolder {
|
||||
*/
|
||||
public static void setErrorMsg(String errorMsg) {
|
||||
LogContext logContext = get();
|
||||
if (logContext != null) {
|
||||
if (null != logContext) {
|
||||
logContext.setErrorMsg(errorMsg);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user