Re: Try/Catch
- Posted by dcuny Feb 14, 2015
- 3978 views
Spock said...
Try/catch would therefore seem to have an advantage if the SSC handler couldn't properly clean up. OTOH, try/catch itself must also attempt a difficult clean up if it is to keep the program running.
You'll generally wrap the try around a discrete action - load a file, save a file, etc. - so that if some portion throws and exception, you know the data structure you were expecting wasn't created properly, and can't be trusted for use.
- David