Article

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

Re: Exceptions vs Error codes

In article <✉forums.inprise.com>
	Raoul De Kezel <✉hotmail.com> wrote:

> > I'll show you that the majority should have checked for error before
> > doing whatever raised the exception.
> 
> Basically, I agree. 

There's no argument, then. <g>

> Still, as you know, volatile or complex
> preconditions cannot be checked beforehand.

It depends on the quality of the input data. I'm far from sure that the
appropriate mechanism for failure of database committal is an exception,
because it isn't really an exception; it is to be expected in ordinary
minute-to-minute run-time behaviour.

-- Barry
--   If you're not part of the solution, you're part of the precipitate. Team JEDI: http://www.delphi-jedi.org NNQ - Quoting Style in Newsgroup Postings   http://web.infoave.net/~dcalhoun/nnq/nquote.html
FYI: Attachments and HTML formatted text are not indexed
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 02:06:18 UTC
Copyright © 2009-2024
HREF Tools Corp.