public Throwable getCause() {
SOAPFault fault;
try {
fault = SOAPFactory.newInstance().createFault();
fault.setFaultCode(new QName(String.valueOf(this.getFaultInfo().getModule()), this.getFaultInfo().getErrorCode()));
fault.setFaultString(this.getFaultInfo().toString());
SOAPFaultException ex = new SOAPFaultException(fault);
return ex;
} catch (SOAPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return super.getCause();
}
}
最后
以上就是无限小蝴蝶最近收集整理的关于设置SOAPFaultException中SOAPFault的内容的全部内容,更多相关设置SOAPFaultException中SOAPFault内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复