Article

From:
To:
Greg Lorriman
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

"Greg Lorriman" <✉bigfoot.com> wrote in message
news:3b770d27_2@dnews...
>
> It's supposed to cover the unexpected which means
> that for which your program cannot be reasonably expected to cope. A user
> providing a path to a non-existent file, for example, or an alphanummeric
> string where a number is required.
>

Basically what you are saying is that the "threshold" for generating
exceptions is the allotted development budget. Complete error handling
takes more time to write. Any program can in principle handle the
cases you describe in a number of graceful ways without generating
exceptions.

Kristofer
FYI: "The biggest compliment I can pay is that I'd be very happy to pay the modest amount required to add Rubicon to my toolbox. It is a handy tool to have.", Developers Review, December 1998
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 00:19:07 UTC
Copyright © 2009-2024
HREF Tools Corp.