public class NGExitException extends SecurityException
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(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(PrintStream out) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
public NGExitException(int status)
status
- the status code returned via System.exit()public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
public void reallyPrintStackTrace(PrintStream out)
public int getStatus()
Copyright © 2018. All rights reserved.