|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Handles application exit events. This is used to make the CLI testable and to centralize exit behaviour.
| 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. |
| Method Detail |
public void successfulExit(Main app)
app - the application instance
public void failureExit(Main app,
java.lang.String msg,
java.lang.Throwable t,
int exitCode)
app - the application instancemsg - an error messaget - an associated exception (may be null)exitCode - application exit code (must be non-zero)
|
barcode4j 2.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||