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

io.linguarobot.aws.cdk.maven.process.ProcessExecutionException Maven / Gradle / Ivy

package io.linguarobot.aws.cdk.maven.process;

import com.google.common.collect.ImmutableList;
import io.linguarobot.aws.cdk.maven.CdkPluginException;

import javax.annotation.Nullable;
import java.util.List;

public class ProcessExecutionException extends CdkPluginException {

    private final Integer exitCode;
    private final List command;

    public ProcessExecutionException(List command, Throwable cause) {
        super("The process exited with an error", cause);
        this.command = ImmutableList.copyOf(command);
        this.exitCode = null;
    }

    public ProcessExecutionException(List command, int exitCode, Throwable cause) {
        super("The process exited with " + exitCode + " exit code", cause);
        this.command = ImmutableList.copyOf(command);
        this.exitCode = exitCode;
    }

    @Nullable
    public Integer getExitCode() {
        return exitCode;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy