Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
dcuny said...

The purpose of fail on error has nothing to do with coding "faultless" code. It's there to provide the developer with a mechanism better than "mysterious machine exceptions".

Well David, I fulheartedly agree with the above statement.
And because I know I make an error once in a while
I use the mechanism described in the other Try/Catch entry.

I add at all new stages of programming a distinct ErrNo (or ExeptNo) telling me
exactly where I went wrong whenever that happens, so I can correct the code tested immediatly.

Because I do so from the very start of coding I can be fairly sure
that the exeption has to be in my last added lines.
So tracking it will be quit easy, agree?

Antoine

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

Search



Quick Links

User menu

Not signed in.

Misc Menu