Class UsageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.geode.modules.session.installer.args.UsageException
- All Implemented Interfaces:
Serializable
Invalid usage exception.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UsageException
Creates a new UsageException.- Parameters:
message- description of exceptional condition
-
-
Method Details
-
setUsage
Attaches a usage message to the exception for later consumption.- Parameters:
usageText- text to display to user to guide them to correct usage. This is generated and set by theArgsProcessor.
-
getUsage
Returns the usage message previously set.- Returns:
- message or null if not set.
-