morfologik-tools/src/main/java/morfologik/tools/ExitStatusException.java
raw| 1 | package morfologik.tools; |
| 2 | |
| 3 | import java.util.Locale; |
| 4 | |
| 5 | @SuppressWarnings("serial") |
| 6 | class ExitStatusException extends RuntimeException { |
| 7 | final ExitStatus exitStatus; |
| 8 | |
| 9 | public ExitStatusException(ExitStatus status, String message, Object... args) { |
| 10 | this(status, null, message, args); |
| 11 | } |
| 12 | |
| 13 | public ExitStatusException(ExitStatus status, Throwable t, String message, Object... args) { |
| 14 | super(String.format(Locale.ROOT, message, args), t); |
| 15 | this.exitStatus = status; |
| 16 | } |
| 17 | } |