org.extex.main.tex.exception
Class MainException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.extex.core.exception.GeneralException
              extended by org.extex.main.tex.exception.MainException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MainCodingException, MainConfigurationException, MainIOException, MainMissingArgumentException, MainOutputFileNotFoundException, MainUnknownDebugOptionException, MainUnknownOptionException

public class MainException
extends GeneralException

This is the base class for all exceptions of the main class. In addition to the message and cause attributes of the Exception it also carries an integer which is meant to be used as exit status for the main program.

Version:
$Revision:4708 $
Author:
Gerd Neugebauer
See Also:
Serialized Form

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
MainException(java.lang.String theMessage)
          Creates a new object.
MainException(java.lang.Throwable cause)
          Creates a new object.
 
Method Summary
 java.lang.String getLocalizedMessage()
          Getter for the message.
 
Methods inherited from class org.extex.core.exception.GeneralException
getHelp, getLocalizer, isProcessed, setProcessed
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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

serialVersionUID

protected static final long serialVersionUID
The constant serialVersionUID contains the id for serialization.

See Also:
Constant Field Values
Constructor Detail

MainException

public MainException(java.lang.String theMessage)
Creates a new object.

Parameters:
theMessage - the message

MainException

public MainException(java.lang.Throwable cause)
Creates a new object.

Parameters:
cause - the cause for this Exception
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Getter for the message.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
the message