Name: krC82822 Date: 12/16/2000
It is common practice among Java developers to wrap exceptions. See the SAX
API's SaxException for an example. If Throwable had a method
getNextException() or getWrappedException() or maybe getWrappedThrowable(),
it would make dealing with wrapped exceptions in a generic way very easy.
The default implementation in Throwable would return null.
So all we are asking for is three lines in java.lang.Throwable:
public Throwable getWrappedThrowable(){
return null;
}
(or getWrappedException() equivalent)
(Review ID: 113916)
======================================================================
- duplicates
-
JDK-4209652 Put recursive exception handling (ala InvocationTargetException) into Throwable!
-
- Resolved
-