com.ptc.windchill.structconf.util
Class NestableException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.ptc.windchill.structconf.util.NestableException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StructConfManagerException, XconfException

public class NestableException
extends Exception

An exception that can nest other exceptions and will report causation if the printStackTrace(...) methods or getFullMessage() are used.

See Also:
Serialized Form

Field Summary
private  Throwable throwable_
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
protected NestableException(String message)
          Create with just a message and no causing throwable.
protected NestableException(String message, Throwable cause)
          Create with a message and a causing throwable.
protected NestableException(Throwable cause)
          Create with just a causing throwable.
 
Method Summary
 Throwable getCause()
          The throwable that caused this exception to be thrown.
 String getFullMessage()
          A message including the messages of all causing throwables.
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
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

throwable_

private Throwable throwable_
Constructor Detail

NestableException

protected NestableException(String message)
Create with just a message and no causing throwable.


NestableException

protected NestableException(String message,
                            Throwable cause)
Create with a message and a causing throwable.


NestableException

protected NestableException(Throwable cause)
Create with just a causing throwable.

Method Detail

getCause

public Throwable getCause()
The throwable that caused this exception to be thrown.

Returns:
possibly null if was created with no causing throwable

getFullMessage

public String getFullMessage()
A message including the messages of all causing throwables.


printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(PrintStream s)

printStackTrace

public void printStackTrace(PrintWriter s)