Removed CommandFailedException.java

This commit is contained in:
Andrew Lalis 2023-02-03 17:05:43 +01:00
parent 5d18da6ebe
commit abbe1cccbe
1 changed files with 0 additions and 35 deletions

View File

@ -1,35 +0,0 @@
package nl.andrewlalis.gymboard_api.service;
import java.io.IOException;
import java.nio.file.Path;
public class CommandFailedException extends IOException {
private final Path stdoutFile;
private final Path stderrFile;
private final int exitCode;
private final String[] command;
public CommandFailedException(String[] command, int exitCode, Path stdoutFile, Path stderrFile) {
super(String.format("Command \"%s\" exited with code %d.", String.join(" ", command), exitCode));
this.command = command;
this.exitCode = exitCode;
this.stdoutFile = stdoutFile;
this.stderrFile = stderrFile;
}
public Path getStdoutFile() {
return stdoutFile;
}
public Path getStderrFile() {
return stderrFile;
}
public int getExitCode() {
return exitCode;
}
public String[] getCommand() {
return command;
}
}