|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.SecurityException
com.martiansoftware.nailgun.NGExitException
public class NGExitException
Security exception which wraps an exit status code.
| Constructor Summary | |
|---|---|
NGExitException(int status)
Constructs an exit exception. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NGExitException(int status)
status - the status code returned via System.exit()| Method Detail |
|---|
public void printStackTrace(PrintStream out)
printStackTrace in class Throwablepublic void reallyPrintStackTrace(PrintStream out)
public int getStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||