@Override
public SdkServiceException unmarshall(Node in) throws Exception {
XPath xpath = xpath();
String error = asString("Error/Code", in, xpath);
String requestId = asString("Error/RequestId", in, xpath);
String message = asString("Error/Message", in, xpath);
if (!StringUtils.equals(error, this.errorCode)) {
return null;
}
SdkServiceException exception = newException(message);
exception.errorCode(errorCode);
exception.requestId(requestId);
return exception;
}
S3ExceptionUnmarshaller.java 文件源码
java
阅读 16
收藏 0
点赞 0
评论 0
项目:aws-sdk-java-v2
作者:
评论列表
文章目录