|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hyphenType.exit.ExitStatusHelper
public class ExitStatusHelper
The object that is passed to the StatusCode.beforeExit(ExitStatusHelper)
method.
Constructor Summary | |
---|---|
ExitStatusHelper(Class<? extends Options<?>> optionsInterface,
Enum<? extends StatusCode> enumConstant,
Throwable throwable,
Object... args)
Creates a helper containing the message extracted from the documentation formatter. |
Method Summary | |
---|---|
String |
getMessage()
Gives access to the message associated with this exit status code. |
Throwable |
getThrowable()
Gives access to the throwable responsible for this environment termination. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExitStatusHelper(Class<? extends Options<?>> optionsInterface, Enum<? extends StatusCode> enumConstant, Throwable throwable, Object... args)
optionsInterface
- The options interface parsed using the command line arguments.enumConstant
- The enum constant used as the basis for creating the key.throwable
- The throwable that was responsible for this termination, if any.args
- Replacements.Method Detail |
---|
public final String getMessage()
ExitStatusHelper#ExitStatusHelper(String, Object...)
.
In other words, status code enumeration constants cannot
access the raw content of the resource bundles.
public final Throwable getThrowable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |