From: gauthier@unilim.fr (Michel Gauthier)
Subject: Re: Common Error/Exception Handler
Date: 1996/04/23
Date: 1996-04-23T00:00:00+00:00 [thread overview]
Message-ID: <gauthier-2304961522460001@164.81.60.62> (raw)
In-Reply-To: 4l8d5i$31g@news.sanders.lockheed.com
In article <4lggbm$fth@news.sanders.lockheed.com>, John Cupak
<jcupak@isd99.sanders.lockheed.com> wrote:
>> I was thinking that a "global error/exception handler" package would
be easier
>> to maintain, since *all* error definitions and messages would be in a single
>> place.
>>
>> Comments?
IMHO, this idea is not consistent with weak coupling principles _if_ your
package is unique for all the system.
At the opposite, I suggest to the students to group their exceptions in
a package that is common to all a "subsystem", say a library. This package
ought to be non-generic.
Yet better, if appropriate, this package with exceptions can sensibly be
the root of a hierarchy of components.
In both cases, there are generally some other common entities which can
be declared together with the exceptions. Example :
- Calendar declares exceptions, number of days and day names,
- Calendar.Gregorian declares the types for years, months and days,
- Calendar.Gregorian.Calendar declares the type Date itself.
---------- ---------- ---------- ----------
Michel Gauthier / Laboratoire d'informatique
123 avenue Albert Thomas / F-87060 Limoges
telephone +33 () 55457335 [or ~ 7232]
fax +33 () 55457315 [or ~7201]
---------- ---------- ---------- ----------
La grande equation de la fin du siecle : windows-X = Mac-Y
The main end-of-century equation : windows-X = Mac-Y
---------- ---------- ---------- ----------
Si l'an 2000 est pour vous un mysticisme stupide, utilisez la base 9
If you feel year 2000 a stupid mystic craze, use numeration base 9
---------- ---------- ---------- ----------
next prev parent reply other threads:[~1996-04-23 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-19 0:00 Common Error/Exception Handler John Cupak
1996-04-19 0:00 ` Robert A Duff
1996-04-22 0:00 ` Laurent Guerby
1996-04-22 0:00 ` John Cupak
1996-04-23 0:00 ` Michel Gauthier [this message]
1996-04-24 0:00 ` Michel Gauthier
1996-05-04 0:00 ` LJMetzger
1996-05-04 0:00 ` Theodore E. Dennison
1996-05-08 0:00 ` John English
1996-05-10 0:00 ` Theodore E. Dennison
1996-05-09 0:00 ` Jon S Anthony
1996-05-10 0:00 ` John English
1996-05-10 0:00 ` Robert A Duff
-- strict thread matches above, loose matches on Subject: below --
1996-04-24 0:00 tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox