> 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