From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.7 required=3.0 tests=BAYES_00,NICE_REPLY_A, REPLYTO_WITHOUT_TO_CC,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: Extra information in the message string of exceptions. Date: Mon, 6 Jun 2022 20:40:57 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@notmyhomepage.de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 6 Jun 2022 18:40:58 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="a8b1658011db123fdeababb46b965338"; logging-data="14801"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19IQJ7eKjhCHclbsawKh9VjAFP1dT3BpO0=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cancel-Lock: sha1:/6+susGN5AZpdMRIc93iyo+nvdM= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63934 List-Id: On 06.06.22 15:40, Fabien Chouteau wrote: > On Monday, June 6, 2022 at 3:02:25 PM UTC+2, roda...@gmail.com wrote: >> For instance, a Constraint_Error message might provide details on >> the variable name, the legal range and the erroneous value which caused >> the exception. > > That's a really good idea I would say. Extremely useful during development where I often start the debugger just to know what value triggered a Constraint_Error. > > I guess the drawback is performance as formatting string with extra information will have a cost. > But this feature could be activated with a switch only when needed. Will it help to have a standard object taking just the data?