bcds.tools
Class ExitException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by bcds.tools.ExitException
All Implemented Interfaces:
java.io.Serializable

public class ExitException
extends java.lang.RuntimeException

A RuntimeException used to signal "quick exit". In a sense, this is just a control transfer mechanism, not really an "exception".

Author:
Juan Segovia S.
See Also:
Serialized Form

Constructor Summary
ExitException()
          Default constructor.
ExitException(int code)
          Creates a new instance with the given exit code and null message.
ExitException(int code, java.lang.String msg)
          Creates a new instance with the given exit code and message.
ExitException(java.lang.String msg)
          Creates a new instance with exit code 0 and the given message.
 
Method Summary
 int getCode()
          Regurns the exit code.
 
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
 

Constructor Detail

ExitException

public ExitException()
Default constructor.


ExitException

public ExitException(java.lang.String msg)
Creates a new instance with exit code 0 and the given message.


ExitException

public ExitException(int code)
Creates a new instance with the given exit code and null message.


ExitException

public ExitException(int code,
                     java.lang.String msg)
Creates a new instance with the given exit code and message.

Method Detail

getCode

public int getCode()
Regurns the exit code.