Article

From:
To:
Barry Kelly
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

In article <✉4ax.com>, ✉eircom.net says...
> I'm far from certain that exceptions are the correct method for handling
> database "errors", because database "errors" aren't really errors; they
> are very much run-of-the-mill conditions that happen day-in day-out. 
Precisely. They are exceptions to the standard behavior, and it
therefore makes sense to report them with exceptions.

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.
--- Raoul
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 22 Nov 2024 16:35:46 UTC
Copyright © 2009-2024
HREF Tools Corp.