com.vladium.util.exception
Interface IThrowableWrapper

All Known Implementing Classes:
AbstractException, AbstractRuntimeException, EMMAException, EMMARuntimeException

interface IThrowableWrapper

TODO: javadoc Any exception that wraps around another exception and wishes to be fully inspectable by ExceptionCommon should implement this interface. Note that JDK 1.4+ obsoletes the need for an explicit interface like this, although the implementation in ExceptionCommon is upwards compatible with it.

Author:
Vlad Roubtsov, (C) 2002

Method Summary
 void __printStackTrace(java.io.PrintStream ps)
          Every exception hierarchy implementing this interface must ensure that this method delegates to super.printStackTrace(ps) where 'super' is the first superclass not implementing IThrowableWrapper.
 void __printStackTrace(java.io.PrintWriter pw)
          Every exception hierarchy implementing this interface must ensure that this method delegates to super.printStackTrace(pw) where 'super' is the first superclass not implementing IThrowableWrapper.
 java.lang.Throwable getCause()
          Gets the Throwable being wrapped.
 

Method Detail

getCause

java.lang.Throwable getCause()
Gets the Throwable being wrapped. This method signature is the same as Throwable.getCause() in J2SE 1.4.

Returns:
Throwable being wrapped by this object [can be null].

__printStackTrace

void __printStackTrace(java.io.PrintWriter pw)
Every exception hierarchy implementing this interface must ensure that this method delegates to super.printStackTrace(pw) where 'super' is the first superclass not implementing IThrowableWrapper. This is used by ExceptionCommon to avoid infinite recursion and is not meant to be called by other classes.


__printStackTrace

void __printStackTrace(java.io.PrintStream ps)
Every exception hierarchy implementing this interface must ensure that this method delegates to super.printStackTrace(ps) where 'super' is the first superclass not implementing IThrowableWrapper. This is used by ExceptionCommon to avoid infinite recursion and is not meant to be called by other classes.