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