| 1 |
package morfologik.tools; |
| 2 |
|
| 3 |
public enum ExitStatus { |
| 4 |
/** |
| 5 |
* The command was successful. |
| 6 |
*/ |
| 7 |
SUCCESS (0), |
| 8 |
|
| 9 |
/** |
| 10 |
* Unknown error cause. |
| 11 |
*/ |
| 12 |
ERROR_OTHER (1), |
| 13 |
|
| 14 |
/** |
| 15 |
* Invalid input arguments or their combination. |
| 16 |
*/ |
| 17 |
ERROR_INVALID_ARGUMENTS (2), |
| 18 |
|
| 19 |
/** |
| 20 |
* A potentially destructive command requires explicit confirmation that was |
| 21 |
* not present. |
| 22 |
*/ |
| 23 |
ERROR_CONFIRMATION_REQUIRED (3); |
| 24 |
|
| 25 |
public final int code; |
| 26 |
|
| 27 |
private ExitStatus(int systemExitCode) { |
| 28 |
this.code = systemExitCode; |
| 29 |
} |
| 30 |
} |