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
Fri, 22 Nov 2024 16:38:36 UTC
Copyright © 2009-2024
HREF Tools Corp.