diff --git a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/service/CommandFailedException.java b/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/service/CommandFailedException.java deleted file mode 100644 index 1443e01..0000000 --- a/gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/service/CommandFailedException.java +++ /dev/null @@ -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; - } -}