Kristofer Skaug
Re: Exceptions vs Error codes

Re: Exceptions vs Error codes

In article <3b7cdda9$1_1@dnews>, ‚úČ 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
Tue, 07 Feb 2023 05:36:21 UTC
Copyright © 2009-2023
HREF Tools Corp.