捕获分发消息过程中的所有错误
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user