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
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. |
cause
protected Throwable cause
- Causing throwable.
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.
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