|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.krysalis.barcode4j.cli.AbstractExitHandler
public abstract class AbstractExitHandler
Abstract base class for an exit handler for the CLI.
Constructor Summary | |
---|---|
AbstractExitHandler()
|
Method Summary | |
---|---|
void |
failureExit(Main app,
java.lang.String msg,
java.lang.Throwable t,
int exitCode)
Called to indicate an exit with failure. |
void |
successfulExit(Main app)
Called to indicate a clean, successful exit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractExitHandler()
Method Detail |
---|
public void successfulExit(Main app)
ExitHandler
successfulExit
in interface ExitHandler
app
- the application instanceExitHandler
public void failureExit(Main app, java.lang.String msg, java.lang.Throwable t, int exitCode)
ExitHandler
failureExit
in interface ExitHandler
app
- the application instancemsg
- an error messaget
- an associated exception (may be null)exitCode
- application exit code (must be non-zero)ExitHandler
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |