|
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 org.krysalis.barcode4j.cli.DefaultExitHandler
public class DefaultExitHandler
Default exit handler that calls System.exit().
Constructor Summary | |
---|---|
DefaultExitHandler()
|
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 DefaultExitHandler()
Method Detail |
---|
public void failureExit(Main app, java.lang.String msg, java.lang.Throwable t, int exitCode)
failureExit
in interface ExitHandler
failureExit
in class AbstractExitHandler
app
- the application instancemsg
- an error messaget
- an associated exception (may be null)exitCode
- application exit code (must be non-zero)ExitHandler
public void successfulExit(Main app)
successfulExit
in interface ExitHandler
successfulExit
in class AbstractExitHandler
app
- the application instanceExitHandler
|
barcode4j 2.1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |