public class NGExitException
extends java.lang.SecurityException
Modifier and Type | Field and Description |
---|---|
private int |
status
Status code
|
Constructor and Description |
---|
NGExitException(int status)
Constructs an exit exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
The status code returned by System.exit()
|
void |
printStackTrace(java.io.PrintStream out)
A lot of code out there, for example ant's Launcher, runs inside a
try/catch (Throwable) which will squash this exception; most also calll
printStackTrace(), so this re-throws the exception to escape the handling
code.
|
void |
reallyPrintStackTrace(java.io.PrintStream out) |
public NGExitException(int status)
status
- the status code returned via System.exit()public void printStackTrace(java.io.PrintStream out)
printStackTrace
in class java.lang.Throwable
public void reallyPrintStackTrace(java.io.PrintStream out)
public int getStatus()