On Thursday, August 28, 2003, at 07:33 AM, Alex Blewitt wrote:
Note that this applies also when chaining exceptions (and the exception doesn't support nesting the Throwable directly); using
You lost me here. All exceptions support chaining. Some exceptions make it more difficult because they don't have a constructor that takes a Throwable init cause (like IllegalArgumentException), but you can always set it directly. For example:
IllegalArgumentException exception = new IllegalArgumentException("Blah");
exception.initCause(e);
throw exception;
-dain
/************************* * Dain Sundstrom * Partner * Core Developers Network *************************/
