Article

From:
To:
Raoul De Kezel
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes


"Raoul De Kezel" <✉hotmail.com> wrote in message
news:✉forums.inprise.com...
> It is somewhat common these days to read that exceptions should
> be used to report errors and only errors. This statement goes
> against every theory of exceptions. It is also usually void of
> any content because the precise meaning of "error" is unspecified.

He he, finally.
If we could only agree on some terminology, like the " Fault / Error /
Failure " definitions in the "Error handling for Business Information
Systems"  you referenced above, for example (very well written material,
by the way!). Basically, my conclusion is that you *can* use exceptions
to do nearly anything if you just specify your functions accordingly.
Whether you *want* to use exceptions in this way is another matter. It's
up to the designer / programmer (insofar as they are different).

Kristofer
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 29 Mar 2024 09:28:19 UTC
Copyright © 2009-2024
HREF Tools Corp.