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
Thu, 14 Nov 2024 23:41:51 UTC
Copyright © 2009-2024
HREF Tools Corp.