Hi Ko Ko Naing,
From the
Official Tiger Enchancements page, I don't see anything new for exceptions handling in Tiger.
But for JDK 1.4, we've the Chained Exception feature. If you read the sample chapter of the book, you would see a section devoted to it.
Check this out for details on the
Chained Exception Facility.
In brief, two new constructors,
Throwable(Throwable) &
Throwable(String, Throwable) and two new methods
initCause(Throwable) &
getCause() were added to the Throwable class to facilitate this.
Usually in our codes, we tend to caught an exception & rethrow it as our own custom exception. However, when we do so, the information contained in the original exception are lost, unless we made an effort to retrieve them & include them into our custom exceptions.
With chained exception, we could *chain* the original exception to our custom exception. In this way, we don't have to do the extra work of extracting the information ourself.
Check out the sample chapter for more & clearer explanations!
HTH
[ March 09, 2005: Message edited by: Chengwei Lee ]