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: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 15 Nov 2024 09:58:20 UTC
Copyright © 2009-2024
HREF Tools Corp.