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: How did you hear about this site? Contact Webmaster
 
 
Originally created by
Tamarack Associates
Sun, 19 May 2024 22:16:05 UTC
Copyright © 2009-2024
HREF Tools Corp.