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.
logger.warn("Fail to ExceptionFilter when called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+e.getClass().getName()+": "+e.getMessage(),e);
logger.error("Got unchecked and undeclared exception which called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+e.getClass().getName()+": "+e.getMessage(),e);
logger.error("Got unchecked and undeclared exception which called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+e.getClass().getName()+": "+e.getMessage(),e);
logger.error("Got unchecked and undeclared exception which called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+e.getClass().getName()+": "+e.getMessage(),e);
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.
logger.warn("Fail to ExceptionFilter when called by "+RpcContext.getContext().getRemoteHost()+". service: "+invoker.getInterface().getName()+", method: "+invocation.getMethodName()+", exception: "+e.getClass().getName()+": "+e.getMessage(),e);