Article

From:
To:
Raoul De Kezel
Subject:
Re: Exceptions vs Error codes
Newsgroup:
borland.public.delphi.objectpascal

Re: Exceptions vs Error codes

"Raoul De Kezel" <✉hotmail.com> wrote in message
news:✉forums.inprise.com...
> ... 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

well, "useless" maybe a little harsh. But they may not conform with your
strategy and therefore need "reworking". Seldom are you in a position
where all the code is written by the same team, using the same strategies
and styles for the same single purpose. So learning to integrate code
from other people has to be part of your "bag'o'tricks".

> When more than one usage pattern is common,
> more than one exception specification
> will be needed.

in all but the simplest cases.
Kristofer
FYI: Phrase searches are enclosed in either single or double quotes
 
 
Originally created by
Tamarack Associates
Fri, 15 Nov 2024 04:22:54 UTC
Copyright © 2009-2024
HREF Tools Corp.