Removed CommandFailedException.java
This commit is contained in:
		
							parent
							
								
									5d18da6ebe
								
							
						
					
					
						commit
						abbe1cccbe
					
				|  | @ -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; | ||||
| 	} | ||||
| } | ||||
		Loading…
	
		Reference in New Issue