com.amazonaws.http.StaxResponseHandler.handleXmlStreamException()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(70)

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

StaxResponseHandler.handleXmlStreamException介绍

[英]If the exception was caused by an IOException, wrap it an another IOE so that it will be exposed to the RetryPolicy.
[中]如果异常是由IOException引起的,请将其包装为另一个IOE,以便将其暴露于RetryPolicy。

代码示例

代码示例来源:origin: aws/aws-sdk-java

eventReader = XmlUtils.getXmlInputFactory().createXMLEventReader(content);
} catch (XMLStreamException e) {
  throw handleXmlStreamException(e);
  return awsResponse;
} catch (XMLStreamException e) {
  throw handleXmlStreamException(e);
} finally {
  try {

代码示例来源:origin: com.amazonaws/aws-java-sdk-core

eventReader = XmlUtils.getXmlInputFactory().createXMLEventReader(content);
} catch (XMLStreamException e) {
  throw handleXmlStreamException(e);
  return awsResponse;
} catch (XMLStreamException e) {
  throw handleXmlStreamException(e);
} finally {
  try {

代码示例来源:origin: Nextdoor/bender

eventReader = xmlInputFactory.createXMLEventReader(content);
  } catch (XMLStreamException e) {
    throw handleXmlStreamException(e);
  return awsResponse;
} catch (XMLStreamException e) {
  throw handleXmlStreamException(e);
} finally {
  try {

相关文章