All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.openservices.ots.PartialResultFailedException Maven / Gradle / Ivy

Go to download

Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com

There is a newer version: 2.2.4
Show newest version
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