public class UsageException extends Exception
| Constructor and Description |
|---|
UsageException(String message)
Creates a new UsageException.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUsage()
Returns the usage message previously set.
|
void |
setUsage(String usageText)
Attaches a usage message to the exception for later consumption.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UsageException(String message)
message - description of exceptional conditionpublic void setUsage(String usageText)
usageText - text to display to user to guide them to correct usage. This is generated and
set by the ArgsProcessor.public String getUsage()