View Single Post
  #2 (permalink)  
Old 01-07-2008, 11:04 AM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 258
roots is on a distinguished road
General rule of exception handling is that you should catch exception if you need to so that you can correct the problem causing the exception or you have better way of showing the exceptional case. This applies with main method as well.
When you are catching an exception you should answer why are you catching the exception as well.
__________________
dont worry newbie, we got you covered.
Reply With Quote