public class ApplicationException extends Exception
If an exception if this type is thrown should cause program termination with the exit code.
| Modifier and Type | Field and Description |
|---|---|
private ExitCode |
exitCode
Exit code used to return to JVM.
|
| Constructor and Description |
|---|
ApplicationException(ExitCode exitCode,
String message,
Throwable cause)
Dedicated constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExitCode |
getExitCode()
Get program exit code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprivate final ExitCode exitCode
public ApplicationException(ExitCode exitCode, String message, Throwable cause)
exitCode - must not be nullmessage - passed to RuntimeException.RuntimeException(java.lang.String, java.lang.Throwable)cause - passed to RuntimeException.RuntimeException(java.lang.String, java.lang.Throwable)public ExitCode getExitCode()
nullCopyright © 2012 Sven Strittmatter. All Rights Reserved.