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: Quoted text in a message is not indexed
 
 
Originally created by
Tamarack Associates
Mon, 20 May 2024 00:19:07 UTC
Copyright © 2009-2024
HREF Tools Corp.