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...
>
> Exceptions are mechanisms of error *information* propagation. They do
> not increase error. They do not spread error.

They are likely to increase and spread error if not intercepted,
depending on the way you program around them. The caller is forced to
take special measures so as not to be adversely affected by exceptions.

> Good. Then you shouldn't be opposed to exceptions, because exceptions is
> a means of propagation of error information, not an error condition.

If this were all that they do, program execution should simply return to
the next line of code after an exception. Exceptions are not simply
"events" which carry some error information; they interrupt normal
program flow and thus potentially wreak havoc unless extreme care is
taken.

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