Package | Description |
---|---|
org.refcodes.console |
Getting started:
Consider you have a tool called "foo-bar" to be invoked with the below
allowed argument combinations (syntax):
foo-bar [{ -a | -d }] -f <file>
"foo-bar" can be invoked either with an optional "-a" or with an optional
"-d" switch, but not both of them at the same time, and a file
"-f <file>" must be provided, else the passed arguments are rejected as
not being valid.
|
Modifier and Type | Method and Description |
---|---|
ExitCode |
AbstractConsoleException.AbstractCliException.getStatusCode() |
static ExitCode |
ExitCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExitCode[] |
ExitCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
AbstractCliException(ExitCode aExitCode,
String message) |
AbstractCliException(ExitCode aExitCode,
String aMessage,
String aErrorCode) |
AbstractCliException(ExitCode aExitCode,
String message,
Throwable cause) |
AbstractCliException(ExitCode aExitCode,
String aMessage,
Throwable aCause,
String aErrorCode) |
AbstractCliException(ExitCode aExitCode,
Throwable cause) |
AbstractCliException(ExitCode aExitCode,
Throwable aCause,
String aErrorCode) |
Copyright © 2016. All rights reserved.