Jalopy 1.0b10

de.hunsicker.util
Class ChainingRuntimeException

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

public class ChainingRuntimeException
extends RuntimeException

Resembles the JDK 1.4 exception chaining facility.

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

Field Summary
protected  Throwable cause
          Causing throwable.
 
Constructor Summary
ChainingRuntimeException()
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(String message)
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(String message, Throwable cause)
          Creates a new ChainingRuntimeException object.
ChainingRuntimeException(Throwable cause)
          Creates a new ChainingRuntimeException object.
 
Method Summary
 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(PrintStream s)
          Prints this Throwable (the cause if available) and its backtrace to the specified print writer.
 void printStackTrace(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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cause

protected Throwable cause
Causing throwable.
Constructor Detail

ChainingRuntimeException

public ChainingRuntimeException()
Creates a new ChainingRuntimeException object.

ChainingRuntimeException

public ChainingRuntimeException(String message)
Creates a new ChainingRuntimeException object.
Parameters:
message - error message.

ChainingRuntimeException

public ChainingRuntimeException(String message,
                                Throwable cause)
Creates a new ChainingRuntimeException object.
Parameters:
message - error message.
cause - throwable which caused the error.

ChainingRuntimeException

public ChainingRuntimeException(Throwable cause)
Creates a new ChainingRuntimeException object.
Parameters:
cause - throwable which caused the error.
Method Detail

getCause

public Throwable getCause()
Returns the causing throwable.
Returns:
throwable which caused the exception.

printStackTrace

public void printStackTrace(PrintWriter writer)
Prints this Throwable (the cause if available) and its backtrace to the specified print writer.
Overrides:
printStackTrace in class Throwable
Parameters:
writer - writer to use for output.

printStackTrace

public void printStackTrace(PrintStream s)
Prints this Throwable (the cause if available) and its backtrace to the specified print writer.
Overrides:
printStackTrace in class 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 Throwable

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002