fabric.common.exceptions
Class TerminationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by fabric.common.exceptions.TerminationException
All Implemented Interfaces:
java.io.Serializable

public class TerminationException
extends java.lang.RuntimeException

This exception signals termination of the Fabric node. It should be used instead of System.exit to allow Fabric to be started from within a JVM that wasn't started specifically for Fabric, e.g., the Apache ANT framework.

See Also:
Serialized Form

Field Summary
 int exitCode
           
 
Constructor Summary
TerminationException(java.lang.Exception cause, int exit)
           
TerminationException(int exit)
           
TerminationException(java.lang.String msg)
           
TerminationException(java.lang.String msg, int exit)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exitCode

public final int exitCode
Constructor Detail

TerminationException

public TerminationException(java.lang.String msg)

TerminationException

public TerminationException(int exit)

TerminationException

public TerminationException(java.lang.String msg,
                            int exit)

TerminationException

public TerminationException(java.lang.Exception cause,
                            int exit)