Hello Robert, Terry,
robert wrote: A programmer that writes mission critical code without error handler should either be re-trained or fired. There is no excuse for not having error handlers.
It looks like both of you missed my point: it's just as unlikely that programmers and their supervisors of mission critical software forget to evaluate each return value and decide upon these values what to do next, as it is that they forget error handling.
However, if they have to rely on error handlers they have no option anymore (as far as I know at least) to continue. With return values they have. So any method, function, should return the best usable values for everything that can go wrong and can be foreseen more or less. Error handlers should be, of course, but there for everything which can't.
.Net is an inconsequent mix of methods with return values and (often void) methods that rely fully or partly on error handlers. So not for getting e.g. any of the 6 errors which can occur from running Registry.DeleteSubkey (as void) and which could much better have been returned as string return values.
Dick