1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
filebot/source/net/filebot/ExecuteException.java
2019-03-15 14:33:16 +07:00

24 lines
448 B
Java

package net.filebot;
import java.io.IOException;
import java.util.List;
public class ExecuteException extends IOException {
private int exitCode;
public ExecuteException(String message, int exitCode) {
super(message);
this.exitCode = exitCode;
}
public ExecuteException(List<String> command, int exitCode) {
this(String.format("%s failed (%d)", command, exitCode), exitCode);
}
public int getExitCode() {
return exitCode;
}
}