REM:
1. 系统异常响应消息添加系统异常Message消息
This commit is contained in:
HuangXin 2020-09-30 14:29:30 +08:00
parent bce53c6e16
commit 9342bbc9a2
1 changed files with 3 additions and 3 deletions

View File

@ -68,15 +68,15 @@ public class GlobalExceptionHandler {
if (ex instanceof SecurityProtocolException) { if (ex instanceof SecurityProtocolException) {
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
new String[]{((SecurityProtocolException) ex).getErr().getMsg()}); new String[]{((SecurityProtocolException) ex).getErr().getMsg(), ex.getMessage()});
} else if (ex instanceof ControllerNotSupportException) { } else if (ex instanceof ControllerNotSupportException) {
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
new String[]{((ControllerNotSupportException) ex).getErr().getMsg()}); new String[]{((ControllerNotSupportException) ex).getErr().getMsg(), ex.getMessage()});
} else { } else {
return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION,
ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(),
new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg()}); new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg(), ex.getMessage()});
} }
} }
} }