View Single Post
Old Jul 25th, 2006, 4:16 PM   #2
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 3 MBirchmeier is on a distinguished road
Is it best practice - No

Does it get done - Yes

If you can you should generally try to prevent the exception from being thrown, the mechanism for doing so is generally slower and will use more resources.

From a strictly practical standpoint though they're nice to use to prevent from needing to worry about all things that can go wrong. Throw an exception try/catch instead of trying to prevent everything, throw an error message based on the exception type returned, and continue as normal.

Hope this helps a bit.

-MBirchmeier
MBirchmeier is offline   Reply With Quote