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=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:19cc:b0:46b:9918:2225 with SMTP id j12-20020a05621419cc00b0046b99182225mr3844313qvc.77.1654522837409; Mon, 06 Jun 2022 06:40:37 -0700 (PDT) X-Received: by 2002:a81:9f0d:0:b0:2fe:ac51:19b with SMTP id s13-20020a819f0d000000b002feac51019bmr26263783ywn.164.1654522837091; Mon, 06 Jun 2022 06:40:37 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 6 Jun 2022 06:40:36 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=86.212.105.77; posting-account=L3mulQoAAADsXVjCD5rM6Ap3Xy0U3ckB NNTP-Posting-Host: 86.212.105.77 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Extra information in the message string of exceptions. From: Fabien Chouteau Injection-Date: Mon, 06 Jun 2022 13:40:37 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1672 Xref: reader02.eternal-september.org comp.lang.ada:63931 List-Id: 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.