public final class CliError
extends java.lang.RuntimeException
Modifier and Type | Field and Description |
---|---|
int |
code |
Constructor and Description |
---|
CliError(java.lang.String message)
Exits the CLI with a message and an error code of 1.
|
CliError(java.lang.String message,
int code) |
public CliError(java.lang.String message)
message
- Message to output.public CliError(java.lang.String message, int code)
message
- Message to use in the exception.code
- Exit code to set.