本文整理了Java中com.alibaba.dubbo.rpc.RpcResult.getException
方法的一些代码示例,展示了RpcResult.getException
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RpcResult.getException
方法的具体详情如下:
包路径:com.alibaba.dubbo.rpc.RpcResult
类名称:RpcResult
方法名:getException
暂无
代码示例来源:origin: liuyangming/ByteTCC
public Result wrapResultForProvider(Invoker<?> invoker, Invocation invocation, String propagatedBy,
boolean attachRequired) {
try {
RpcResult result = (RpcResult) invoker.invoke(invocation);
if (result.hasException()) {
return this.createErrorResultForProvider(result.getException(), propagatedBy, attachRequired);
} else {
return this.convertResultForProvider(result, propagatedBy, attachRequired);
}
} catch (Throwable rex) {
return this.createErrorResultForProvider(rex, propagatedBy, attachRequired);
}
}
代码示例来源:origin: liuyangming/ByteTCC
public Result wrapResultForProvider(Invoker<?> invoker, Invocation invocation, String propagatedBy,
boolean attachRequired) {
try {
RpcResult result = (RpcResult) invoker.invoke(invocation);
if (result.hasException()) {
return this.createErrorResultForProvider(result.getException(), propagatedBy, attachRequired);
} else {
return this.convertResultForProvider(result, propagatedBy, attachRequired);
}
} catch (Throwable rex) {
return this.createErrorResultForProvider(rex, propagatedBy, attachRequired);
}
}
代码示例来源:origin: wxbty/meepo
public Result wrapResultForProvider(Invoker<?> invoker, Invocation invocation, String propagatedBy,
boolean attachRequired) {
try {
RpcResult result = (RpcResult) invoker.invoke(invocation);
if (result.hasException()) {
return this.createErrorResultForProvider(result.getException(), propagatedBy, attachRequired);
} else {
return this.convertResultForProvider(result, propagatedBy, attachRequired);
}
} catch (Throwable rex) {
return this.createErrorResultForProvider(rex, propagatedBy, attachRequired);
}
}
代码示例来源:origin: org.bytesoft/bytejta-supports-dubbo
public Result wrapResultForProvider(Invoker<?> invoker, Invocation invocation, String propagatedBy,
boolean attachRequired) {
try {
RpcResult result = (RpcResult) invoker.invoke(invocation);
if (result.hasException()) {
return this.createErrorResultForProvider(result.getException(), propagatedBy, attachRequired);
} else {
return this.convertResultForProvider(result, propagatedBy, attachRequired);
}
} catch (Throwable rex) {
return this.createErrorResultForProvider(rex, propagatedBy, attachRequired);
}
}
代码示例来源:origin: liuyangming/ByteJTA
public Result wrapResultForProvider(Invoker<?> invoker, Invocation invocation, String propagatedBy,
boolean attachRequired) {
try {
RpcResult result = (RpcResult) invoker.invoke(invocation);
if (result.hasException()) {
return this.createErrorResultForProvider(result.getException(), propagatedBy, attachRequired);
} else {
return this.convertResultForProvider(result, propagatedBy, attachRequired);
}
} catch (Throwable rex) {
return this.createErrorResultForProvider(rex, propagatedBy, attachRequired);
}
}
代码示例来源:origin: remoting/dubbox
Throwable throwable = result.getException();
int index = 1;
boolean found = false;
代码示例来源:origin: remoting/dubbox
Throwable throwable = result.getException();
int index = 1;
boolean found = false;
代码示例来源:origin: com.alibaba/dubbo-rpc-thrift
Throwable throwable = result.getException();
int index = 1;
boolean found = false;
代码示例来源:origin: com.alibaba/dubbo
Throwable throwable = result.getException();
int index = 1;
boolean found = false;
内容来源于网络,如有侵权,请联系作者删除!