|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExitHandler
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 |
---|
void successfulExit(Main app)
app
- the application instancevoid 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.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |