com.gooddata.sdk.service.dataload.processes.ProcessExecutionException Maven / Gradle / Ivy
/*
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
* 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