From d88de0d5ae16206e479fc0a47097005f2a466f8b Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Sat, 21 Jun 2025 15:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=BC=82=E5=B8=B8=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=A2=9E=E5=8A=A0=20IGNORE=5FEXCEPTION=20=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zhaojun/zfile/core/exception/GlobalExceptionHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/im/zhaojun/zfile/core/exception/GlobalExceptionHandler.java b/src/main/java/im/zhaojun/zfile/core/exception/GlobalExceptionHandler.java index dc079f5..3405060 100644 --- a/src/main/java/im/zhaojun/zfile/core/exception/GlobalExceptionHandler.java +++ b/src/main/java/im/zhaojun/zfile/core/exception/GlobalExceptionHandler.java @@ -351,6 +351,9 @@ public class GlobalExceptionHandler { exceptionMessage.remove(); return AjaxJson.getError(message); } + } else if (exceptionType == ExceptionType.IGNORE_EXCEPTION) { + // 忽略异常 + return null; } if (e.getClass() == Exception.class) {