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: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Tue, 07 Feb 2023 05:03:41 UTC
Copyright © 2009-2023
HREF Tools Corp.