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()}); } } }