Women in Technology

Hear us Roar



Article:
  Best Practices for Exception Handling
Subject:   Thank you , and suggestion
Date:   2005-11-28 10:49:00
From:   ionia23
Thank you for a very informative article about building proper and robust exception handling. This is quite helpful to me.


I did find one thing that caught my attention in the code sample beginning with "public void dataAccessCode()".


And time you do anything with a connection object (conn.close(); and so forth) there is a potential for an exception. In your 'finally' clause, wouldn't in be a good idea to wrap the 'close' method in a try/catch, or is that overkill?