de.hunsicker.util
Class ChainingRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--de.hunsicker.util.ChainingRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Recognizer.ParseException

public class ChainingRuntimeException
extends java.lang.RuntimeException

Resembles the JDK 1.4 exception chaining facility.

Version:
$Revision: 1.3 $
Author:
Marco Hunsicker
See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable cause
          Causing throwable.
 
Constructor Summary
ChainingRuntimeException()
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(java.lang.String message)
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(java.lang.String message, java.lang.Throwable cause)
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(java.lang.Throwable cause)
          Creates a new ChainingRuntimeException object.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the causing throwable.
 void printStackTrace()
          Prints this Throwable (the cause if available) and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this Throwable (the cause if available) and its backtrace to the specified print writer.
 void printStackTrace(java.io.PrintWriter writer)
          Prints this Throwable (the cause if available) and its backtrace to the specified print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

protected java.lang.Throwable cause
Causing throwable.

Constructor Detail

ChainingRuntimeException

public ChainingRuntimeException()
Creates a new ChainingRuntimeException object.


ChainingRuntimeException

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

Parameters:
message - error message.

ChainingRuntimeException

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

Parameters:
message - error message.
cause - throwable which caused the error.

ChainingRuntimeException

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

Parameters:
cause - throwable which caused the error.
Method Detail

getCause

public java.lang.Throwable getCause()
Returns the causing throwable.

Overrides:
getCause in class java.lang.Throwable
Returns:
throwable which caused the exception.

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Prints this Throwable (the cause if available) and its backtrace to the specified print writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
writer - writer to use for output.

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this Throwable (the cause if available) and its backtrace to the specified print writer.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
s - stream to use for output.

printStackTrace

public void printStackTrace()
Prints this Throwable (the cause if available) and its backtrace to the standard error stream.

Overrides:
printStackTrace in class java.lang.Throwable


Copyright © 1997-2005 Jalopy. All Rights Reserved.