Barry Kelly
Re: Exceptions vs Error codes

Re: Exceptions vs Error codes

In article <‚úČ>, ‚úČ 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
Tue, 07 Feb 2023 05:44:22 UTC
Copyright © 2009-2023
HREF Tools Corp.