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...
>
> My point is that exceptions are unified; they all descend from
> Exception, they have a standardized handling mechanism.
>
> I was just trying to use some literary devices to illustrate their
> varying pedigrees, and their inherent disunity.
>
> No offence intended.
>

OK.

> > Not sure where you have the 'globals' from.
>
> Thread-local global variables; IOResult, GetLastError, while functions,
> are effectively read-only global variables; consider also SetLastError.

<argh> actually I rarely use any of those, I always try to get the error
code directly from a call if at all possible.
However there are situations where you depend on the above.
I think those situations will still be there if you use exceptions, the
only difference is that
after you've read the error code you raise an exception of your own.

>
> You still haven't answered the question.
>

I'll try again, in relation to your previous post. (see above)

Kristofer
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Tue, 07 Feb 2023 05:54:51 UTC
Copyright © 2009-2023
HREF Tools Corp.