Browse Source

业务异常-支持多种返回结果

weixiansheng 6 months ago
parent
commit
567e3847db

+ 5 - 5
exception/multiple-result-exception-demo/src/main/java/com/ybw/exception/RestExceptionHandler.java

@@ -55,12 +55,12 @@ public class RestExceptionHandler {
      * 业务异常
      *
      * @param e
-     * @return com.ybwei.exceptiondemo.vo.base.ApiResult
-     * @throws
+     * @param handlerMethod
      * @methodName: bizExceptionHandler
-     * @author ybwei
-     * @date 2022/3/17 13:45
-     */
+     * @return: java.lang.Object
+     * @author: weixiansheng
+     * @date: 2023/11/9
+     **/
     @ExceptionHandler(BizException.class)
     @ResponseBody
     public Object bizExceptionHandler(BizException e, HandlerMethod handlerMethod) {