net.sf.colle.util
Class OuterError

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Error
          extended bynet.sf.colle.util.OuterError
All Implemented Interfaces:
Serializable

public class OuterError
extends Error

Outer error with inner Throwable that caused the error. Mimics chained Throwable functionality found in jdk 1.4 without having a dependency on jdk 1.4. Created: 22 Mar 2001

Version:
$Revision: 1.1 $, $Date: 2003/04/23 23:21:24 $
Author:
Dwayne Schultz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.lang.Error
 
Constructor Summary
OuterError(String psMessage, Throwable pxInnerThrowable)
          Constructs an error with a message and a throwable
OuterError(Throwable pxInnerThrowable)
          Constructs an error with a throwable
 
Method Summary
 Throwable getInnerThrowable()
          Gets the root cause if it is specified (may be null).
 void printStackTrace()
          Prints the stack to standard error.
 void printStackTrace(PrintStream pxStream)
          Prints the stack the print stream.
 void printStackTrace(PrintWriter pxWriter)
          Prints the stack the print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OuterError

public OuterError(Throwable pxInnerThrowable)
Constructs an error with a throwable


OuterError

public OuterError(String psMessage,
                  Throwable pxInnerThrowable)
Constructs an error with a message and a throwable

Method Detail

getInnerThrowable

public Throwable getInnerThrowable()
Gets the root cause if it is specified (may be null).


printStackTrace

public void printStackTrace()
Prints the stack to standard error.


printStackTrace

public void printStackTrace(PrintStream pxStream)
Prints the stack the print stream.


printStackTrace

public void printStackTrace(PrintWriter pxWriter)
Prints the stack the print writer.