net.sf.colle.util
Class OuterException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sf.colle.util.OuterException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PersistenceException, TooFewFieldsException, TooManyFieldsException

public class OuterException
extends Exception

Outer exception with inner Throwable that caused the exception. 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.Exception
 
Constructor Summary
OuterException()
          Constructs an exception with no inner throwable.
OuterException(String psMessage)
          Constructs an exception with a message and no inner throwable.
OuterException(String psMessage, Throwable pxInnerThrowable)
          Constructs an exception with a message and a throwable
OuterException(Throwable pxInnerThrowable)
          Constructs an exception 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

OuterException

public OuterException()
Constructs an exception with no inner throwable.


OuterException

public OuterException(String psMessage)
Constructs an exception with a message and no inner throwable.


OuterException

public OuterException(Throwable pxInnerThrowable)
Constructs an exception with a throwable


OuterException

public OuterException(String psMessage,
                      Throwable pxInnerThrowable)
Constructs an exception 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.