com.iplanet.jato.util
Class WrapperRuntimeException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.iplanet.jato.util.WrapperRuntimeException
All Implemented Interfaces:
RootCauseException, java.io.Serializable
Direct Known Subclasses:
NavigationException, ValidationException

public class WrapperRuntimeException
extends java.lang.RuntimeException
implements RootCauseException

Baseclass providing exception and stacktrace formatting, optional constructors and implementation for RootCauseException. Used by both framework and application level exceptions which encapsulate a root cause exception and need to be classified as a RootCauseException.

Version:
JATO/1.2.2 $Id: WrapperRuntimeException.java,v 1.10 2002/03/16 03:26:39 todd Exp $
See Also:
WrapperException, Serialized Form

Constructor Summary
WrapperRuntimeException()
           
WrapperRuntimeException(java.lang.String message)
           
WrapperRuntimeException(java.lang.String message, java.lang.Throwable rootCause)
           
WrapperRuntimeException(java.lang.Throwable rootCause)
           
 
Method Summary
 java.lang.Throwable getException()
           
 java.lang.Throwable getRootCause()
          Accessor for the 'root cause' exception which is the primary event or driver of this exception.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperRuntimeException

public WrapperRuntimeException()

WrapperRuntimeException

public WrapperRuntimeException(java.lang.String message)

WrapperRuntimeException

public WrapperRuntimeException(java.lang.Throwable rootCause)

WrapperRuntimeException

public WrapperRuntimeException(java.lang.String message,
                               java.lang.Throwable rootCause)
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Description copied from interface: RootCauseException
Accessor for the 'root cause' exception which is the primary event or driver of this exception.
Specified by:
getRootCause in interface RootCauseException
Following copied from interface: com.iplanet.jato.util.RootCauseException
Returns:
encapsulated exception which is the 'root' or primary cause

getException

public java.lang.Throwable getException()

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable