com.martiansoftware.nailgun
Class NGExitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
                  extended by org.apache.tools.ant.ExitException
                      extended by com.martiansoftware.nailgun.NGExitException
All Implemented Interfaces:
java.io.Serializable

public class NGExitException
extends org.apache.tools.ant.ExitException

Security exception which wraps an exit status code.

Author:
Pete Kirkham
See Also:
Serialized Form

Constructor Summary
NGExitException(int status)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.apache.tools.ant.ExitException
getStatus
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NGExitException

public NGExitException(int status)
Method Detail

printStackTrace

public 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.

Overrides:
printStackTrace in class java.lang.Throwable

reallyPrintStackTrace

public void reallyPrintStackTrace(java.io.PrintStream out)


© 2004, Martian Software, Inc.