Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu