Article

From:
To:
Barry Kelly
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes


"Barry Kelly" <✉eircom.net> wrote in message
news:✉4ax.com...
> > 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).
>
> Pre D6, yes. You must have a bed-rock of exception handling, unless you
> want all error conditions to be fatal.

What's different about this in D6? <educate me, I've only yesterday
acquired D6 personal and didn't start using it yet>

> > 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.
>
> There, I think that's a bad idea.

What is a bad idea, raising the exceptions in the first place or ensuring
they're caught?

Kristofer
FYI: The following searches are equivalent: 'delphi and not database', '+delphi -database', 'delphi -database'
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 01:48:44 UTC
Copyright © 2009-2024
HREF Tools Corp.