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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Structured exception information From: Georg Bauhaus In-Reply-To: References: <1169819196.5976.57.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: # Message-ID: <1169999064.6748.21.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Date: Sun, 28 Jan 2007 16:44:24 +0100 NNTP-Posting-Date: 28 Jan 2007 16:44:18 CET NNTP-Posting-Host: b121c1d3.newsspool4.arcor-online.net X-Trace: DXC=HWC\0`YVRg^1`E>oC;JXEZ4IUK On Sun, 2007-01-28 at 08:18 -0500, Stephen Leake wrote: > Stephen Leake writes: > > > However, I have yet to see an _actual_ implemention of View that is > > not equivalent to "write this string to a device". So I do _not_ > > anticipate changing that implementation. > > I have to take this back, partly. Ray Blaak posted an example where > View would do: > > Write Short_Description to immediate display device Our office printer has four LEDs, two in green, two in red. In addition, there are some defined blinking sequences. On top of the chassis, there is a label with a legend explaining a number of these combinations. So the "exception strings" are external to the program supposedly running inside the printer. I agree that there are no natural language strings that can usefully be sent to the 4 LEDs. But in this example we have a reporting facility that is easily modified by replacing the label with explanatory text in Spanish, say. Now, > Write Detailed_Description to log device if there was an occurrence of Paper_Jam, and if there is a way to communicate with this printer using same cable connection, the handler can also construct information more useful to service personnel, or to service machinery using a communications protocol. The point is that all of these views will use the same information (ID of the device part that reports failure, kind of failure, ...). Depending on what View is being used, what reporting language, what communications channel, etc., typed exception information could be used to construct a suitable object depending on the display.