Article

From:
To:
Kristofer Skaug
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

In article <3b7cdda9$1_1@dnews>, ✉satserv.nl says...
> Basically, my conclusion is that you *can* use exceptions
> to do nearly anything if you just specify your functions 
> accordingly. 
Yes, mostly. Exceptions should be used to report
exceptional behavior. What's exceptional is indeed
specified by the designer of the function. But 
like any good design, this specification is in turn
driven by the needs and usage pattern of its clients. 
Most arbitrary exception specifications will be useless
and therefore bad designs. When more than one usage
pattern is common, more than one exception specification
will be needed.

--- Raoul
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Wed, 09 Oct 2024 16:51:12 UTC
Copyright © 2009-2024
HREF Tools Corp.