ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Best Practices for Exception Handling
Subject:   Worst Practices
Date:   2003-11-20 12:19:26
From:   anonymous2
Response to: Worst Practices

>It would be useful to add some contructors.
The article failed to describe wrapped (or nested) exceptions: http://www.javaworld.com/javaworld/javatips/jw-javatip91-p3.html


There are nested exceptions mentioned in the article. You miss the point. I think what the author is saying is to add useful information and not just empty class.


>Throwing Exceptions from a the finally block >may result in losing the original exception.


Not true. Use nested exceptions available in 1.4.
Overall I think it is a very good summary of best practices.