I wrote an application that deals with files. I have a try..catch around the majority of the code to catch major exceptions. Within that try..catch is a loop that handles each file. Withing that loop block I handle one file and use at least 1 try..catch when handling the file. The application can throw an exception while handling one file, but I don't wish this condition to cause the entire application to fall out of execution. One file can fail, but I want to continue on. So I therefore require a nested try..catch.
Peter
------------------------------------------------------
Work smarter, not harder.
|