
com.aliyun.openservices.ots.PartialResultFailedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ots-public Show documentation
Show all versions of ots-public Show documentation
Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com
package com.aliyun.openservices.ots;
import com.aliyun.openservices.ots.model.OTSResult;
import java.util.ArrayList;
import java.util.List;
public class PartialResultFailedException extends OTSException {
private OTSResult otsResult;
private List errors = new ArrayList();
/**
* 构造函数。
*
* @param cause 错误原因
* @param requestId RequestId
*/
public PartialResultFailedException(Throwable cause, String requestId, OTSResult otsResult) {
super("Partial result failed in batch operations.", cause, "", requestId, 0);
this.otsResult = otsResult;
}
public void addError(OTSException ex) {
errors.add(ex);
}
public List getErrors() {
return this.errors;
}
public OTSResult getResult() {
return this.otsResult;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy