From abbe1cccbe309386898ec453d852ab419d1194d5 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Fri, 3 Feb 2023 17:05:43 +0100 Subject: [PATCH] Removed CommandFailedException.java --- .../service/CommandFailedException.java | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 gymboard-api/src/main/java/nl/andrewlalis/gymboard_api/service/CommandFailedException.java 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; - } -}