Barry Kelly
Re: Exceptions vs Error codes

Re: Exceptions vs Error codes

On Tue, 14 Aug 2001 03:16:12 +0100, Barry Kelly <‚úČ>

>Please list some valid uses of exception-swallowing try..except blocks,
>and I'll show you that the majority should have checked for error before
>doing whatever raised the exception.

I tend to mute all exceptions in the execute block of a thread, for
instance (otherwise the app has a mysterious tendecy to suddenly
dissappear). I often catch exceptions raised by TFilestream, so the
user can get a notice in a gracefull manner that the file is locked or
the free diskspace is no more. When sending streams as ISAPI
responses, i free the stream object if an exception occurs. And i
catch everything i do in DLL's.

Thats the main places i use them. So, any of your 95% apply here? Im curious.
- Asbj?rn
FYI: Phrase searches are enclosed in either single or double quotes
Originally created by
Tamarack Associates
Tue, 05 Dec 2023 02:36:34 UTC
Copyright © 2009-2023
HREF Tools Corp.