From 6ce86a38bcb890e8652fb3087c51308f7addf5e9 Mon Sep 17 00:00:00 2001 From: zhouxiunai <154707516@qq.com> Date: Mon, 10 Dec 2018 17:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=95=E8=8E=B7=E5=88=86=E5=8F=91=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=BF=87=E7=A8=8B=E4=B8=AD=E7=9A=84=E6=89=80=E6=9C=89?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../msgexchangeapi/msghandler/MsgHandlerDispatcher.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/MsgHandlerDispatcher.java b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/MsgHandlerDispatcher.java index 3ddb9ea5..9316557c 100644 --- a/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/MsgHandlerDispatcher.java +++ b/src/main/java/com/gzzn/omms/msgexchangeapi/msghandler/MsgHandlerDispatcher.java @@ -32,13 +32,7 @@ public class MsgHandlerDispatcher { Method runMethod = clazzHandler.getMethod("run", Cminmsg.class); HandlerResult result = (HandlerResult) runMethod.invoke(classObject, cminmsg); return result; - } catch (ClassNotFoundException - | InstantiationException - | IllegalAccessException - | NoSuchMethodException - | SecurityException - | IllegalArgumentException - | InvocationTargetException e) { + } catch (Exception e) { //throw new RuntimeException(e); logger.error("消息处理失败:{}",e.getMessage()); return HandlerResult.failure();