junit.extensions.jfcunit
Class ExitException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.SecurityException
                  extended byjunit.extensions.jfcunit.ExitException
All Implemented Interfaces:
java.io.Serializable

public final class ExitException
extends java.lang.SecurityException

Used to report exit status of classes which call System.exit().

Author:
Vijay Aravamudhan : ThoughtWorks Inc.
See Also:
Serialized Form

Field Summary
private  int m_status
          Status code.
 
Fields inherited from class java.lang.RuntimeException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
ExitException(int status)
          Constructs an exit exception.
 
Method Summary
 int getStatus()
          The status code returned by System.exit().
 
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

m_status

private final int m_status
Status code.

Constructor Detail

ExitException

public ExitException(int status)
Constructs an exit exception.

Parameters:
status - the status code returned via System.exit()
Method Detail

getStatus

public int getStatus()
The status code returned by System.exit().

Returns:
the status code returned by System.exit()


Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999