@@ -53,9 +53,13 @@ public class MatrixExceptionFilter extends ListenableFilter {
}catch(NoSuchMethodExceptione){
return;
}
// for the exception not found in method's signature, print ERROR message in server's log.
logger.error("Got unchecked and undeclared exception which called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+exception.getClass().getName()+": "+exception.getMessage(),exception);
//防止报警信息错误
Stringmsg="Got unchecked and undeclared exception which called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+exception.getClass().getName()+": "+exception.getMessage();
if(exceptioninstanceofRuntimeException){
logger.warn(msg,exception);
}else{
logger.error(msg,exception);
}
// directly throw if exception class and interface class are in the same jar file.