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

com.gooddata.sdk.service.dataload.processes.ProcessExecutionException Maven / Gradle / Ivy

There is a newer version: 3.11.1+api3
Show newest version
/*
 * (C) 2023 GoodData Corporation.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE.txt file in the root directory of this source tree.
 */
package com.gooddata.sdk.service.dataload.processes;

import com.gooddata.sdk.common.GoodDataException;
import com.gooddata.sdk.model.dataload.processes.ProcessExecutionDetail;

/**
 * Represents failure during process execution
 */
public class ProcessExecutionException extends GoodDataException {

    private ProcessExecutionDetail executionDetail;
    private String executionDetailUri;

    public ProcessExecutionException(String message) {
        super(message);
    }

    public ProcessExecutionException(String message, Throwable cause) {
        super(message, cause);
    }

    public ProcessExecutionException(String message, ProcessExecutionDetail executionDetail) {
        this(message, executionDetail, null);
    }

    public ProcessExecutionException(String message, Throwable cause, String executionDetailUri) {
        super(message, cause);
        this.executionDetailUri = executionDetailUri;
    }

    public ProcessExecutionException(final String message, final ProcessExecutionDetail executionDetail, final Throwable cause) {
        super(message, cause);
        this.executionDetail = executionDetail;
        if (executionDetail != null) {
            this.executionDetailUri = executionDetail.getUri();
        }
    }

    public ProcessExecutionDetail getExecutionDetail() {
        return executionDetail;
    }

    public String getExecutionDetailUri() {
        return executionDetailUri;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy