提交 6ce8ad20 编写于 作者: W william.liangf

DUBBO-18 将RMI抛出的异常转成RpcException

git-svn-id: http://code.alibabatech.com/svn/dubbo/trunk@153 1a56cb94-b969-4eaa-88fa-be21384802f2
上级 ff9a14ff
......@@ -37,7 +37,13 @@ public class RmiInvoker<T> extends AbstractInvoker<T> {
@Override
protected Result doInvoke(Invocation invocation) throws RpcException {
return invoker.invoke(invocation);
try {
return invoker.invoke(invocation);
} catch (RpcException e) {
throw e;
} catch (Throwable e) {
throw new RpcException(e.getMessage(), e);
}
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册