com.alibaba.dubbo.rpc.RpcResult.getException()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中com.alibaba.dubbo.rpc.RpcResult.getException方法的一些代码示例,展示了RpcResult.getException的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RpcResult.getException方法的具体详情如下:
包路径:com.alibaba.dubbo.rpc.RpcResult
类名称:RpcResult
方法名:getException

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;

相关文章