net.walend.lang
Interface HasNestedThrowable

All Known Implementing Classes:
NestedCreateException, NestedDuplicateKeyException, NestedEJBException, NestedException, NestedFinderException, NestedNoSuchEntityException, NestedObjectNotFoundException, NestedRemoveException, NestedRuntimeException, NestedSQLException

public interface HasNestedThrowable

An interface for Throwables that can contain other Throwables.

When you implement this interface, override printStackTrace to print the stack trace of both this Throwable and the contained Throwable.

Since:
20001121
Author:
David Walend

Method Summary
 java.lang.Throwable getNestedThrowable()
          Returns the nested Throwable, or null if there doesn't happent to be one.
 boolean hasNestedThrowable()
           
 void printLimitedStackTrace(java.io.PrintStream ps)
          Print the stack trace of just this Throwable.
 void printLimitedStackTrace(java.io.PrintWriter pw)
          Print the stack trace of just this Throwable.
 

Method Detail

getNestedThrowable

public java.lang.Throwable getNestedThrowable()
Returns the nested Throwable, or null if there doesn't happent to be one.


hasNestedThrowable

public boolean hasNestedThrowable()

printLimitedStackTrace

public void printLimitedStackTrace(java.io.PrintStream ps)
Print the stack trace of just this Throwable.


printLimitedStackTrace

public void printLimitedStackTrace(java.io.PrintWriter pw)
Print the stack trace of just this Throwable.



Copyright (c) 2000, 2001, David Walend