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!wns14feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Structured exception information References: <514adpF1i6us0U1@mid.individual.net> In-Reply-To: <514adpF1i6us0U1@mid.individual.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1168970833 12.201.97.213 (Tue, 16 Jan 2007 18:07:13 GMT) NNTP-Posting-Date: Tue, 16 Jan 2007 18:07:13 GMT Organization: AT&T ASP.att.net Date: Tue, 16 Jan 2007 18:07:13 GMT Xref: g2news2.google.com comp.lang.ada:8194 Date: 2007-01-16T18:07:13+00:00 List-Id: Applying the KISS principle, I'd think the way to do this would be with Ada.Exceptions; generic -- Exceptions_With_Info type Problem_Info (<>) is limited private; with function Image (Value : Problem_Info) return String; with function Value (Image : String) return Problem_Info; package Exceptions_With_Info is procedure Raise_With_Info (ID : in Ada.Exceptions.Exception_ID; Info : in Problem_Info); procedure Raise_With_Info (Occurrence : in Ada.Exceptions.Exception_Occurrence; Info : in Problem_Info); function Info (Occurrence : Ada.Exceptions.Exception_Occurrence) return Problem_Info; end Exceptions_With_Info;