org.extex.core.exception
Class ImpossibleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.extex.core.exception.ImpossibleException
All Implemented Interfaces:
java.io.Serializable

public class ImpossibleException
extends java.lang.RuntimeException

This exception indicates that a situation has been detected which should not happen. This results from conservative programming. For instance if all possible values of a variable are processed in a switch statement and then this exception is thrown in the default clause.

This exception is not applicable for i18n.

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

Field Summary
protected static long serialVersionUID
          The constant serialVersionUID contains the id for serialization.
 
Constructor Summary
ImpossibleException(java.lang.String message)
          Creates a new object.
ImpossibleException(java.lang.String message, java.lang.Throwable cause)
          Creates a new object.
ImpossibleException(java.lang.Throwable cause)
          Creates a new object.
 
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

serialVersionUID

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

See Also:
Constant Field Values
Constructor Detail

ImpossibleException

public ImpossibleException(java.lang.String message)
Creates a new object.

Parameters:
message - the description of the error

ImpossibleException

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

Parameters:
cause - the cause of the error

ImpossibleException

public ImpossibleException(java.lang.String message,
                           java.lang.Throwable cause)
Creates a new object.

Parameters:
message - the description of the error
cause - the cause of the error