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: The minus sign, '-', may be used to exclude a word from the search (e.g. +delphi -database)
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 00:19:07 UTC
Copyright © 2009-2024
HREF Tools Corp.