VB.Net 2005 - Question on Nested Try Catch Finally
I am trying to update data that is linked in two different databases. If the attempt to save the data in database 1 fails, I need to do some cleanup in database 2 and E-mail that the error occured. This results in something like this:
Code:
data = GetDataToSave()
Try
SaveDataInDatabase1(data)
Catch exOuter as Exception
CleanupDataInDatabase2()
EmailAndWriteErrorToLog("Save