捕获分发消息过程中的所有错误

This commit is contained in:
zhouxiunai
2018-12-10 17:21:18 +08:00
parent ad7f34f48d
commit 6ce86a38bc
@@ -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();