From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,631686271a29a357 X-Google-Attributes: gid103376,public From: gauthier@unilim.fr (Michel Gauthier) Subject: Re: Common Error/Exception Handler Date: 1996/04/23 Message-ID: #1/1 X-Deja-AN: 150976085 references: <4l8d5i$31g@news.sanders.lockheed.com> organization: Universite de Limoges newsgroups: comp.lang.ada Date: 1996-04-23T00:00:00+00:00 List-Id: In article <4lggbm$fth@news.sanders.lockheed.com>, John Cupak 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 ---------- ---------- ---------- ----------