From 9342bbc9a2816a460229b821bcef6b7a00bde741 Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 30 Sep 2020 14:29:30 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E7=B3=BB=E7=BB=9F=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E5=93=8D=E5=BA=94=E6=B6=88=E6=81=AF=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=BC=82=E5=B8=B8Message=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/exception/GlobalExceptionHandler.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/dispose/exception/GlobalExceptionHandler.java b/src/main/java/com/dispose/exception/GlobalExceptionHandler.java index 502d212b..ec454e48 100644 --- a/src/main/java/com/dispose/exception/GlobalExceptionHandler.java +++ b/src/main/java/com/dispose/exception/GlobalExceptionHandler.java @@ -68,15 +68,15 @@ public class GlobalExceptionHandler { if (ex instanceof SecurityProtocolException) { return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), - new String[]{((SecurityProtocolException) ex).getErr().getMsg()}); + new String[]{((SecurityProtocolException) ex).getErr().getMsg(), ex.getMessage()}); } else if (ex instanceof ControllerNotSupportException) { return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), - new String[]{((ControllerNotSupportException) ex).getErr().getMsg()}); + new String[]{((ControllerNotSupportException) ex).getErr().getMsg(), ex.getMessage()}); } else { return ProtocolRespDTO.result(ErrorCode.ERR_PARAMEXCEPTION, ErrorCode.ERR_PARAMEXCEPTION.getHttpCode(), - new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg()}); + new String[]{ErrorCode.ERR_PARAMEXCEPTION.getMsg(), ex.getMessage()}); } } }