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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: GNAT user-specified (via Raise_Exception) warning message size limit Date: Fri, 16 Feb 2018 18:03:10 -0600 Organization: JSA Research & Innovation Message-ID: References: <789f6417-5e6f-4d5f-8abb-80246f4f405a@googlegroups.com> Injection-Date: Sat, 17 Feb 2018 00:03:11 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="26343"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:50477 Date: 2018-02-16T18:03:10-06:00 List-Id: wrote in message news:789f6417-5e6f-4d5f-8abb-80246f4f405a@googlegroups.com... ... >It seems that although quite long messages are accepted at calls to it, the >message then retrieved and printed within a handler that uses >Ada.Exceptions.Exception_Message on the occurrence only returns a >truncated part of the original message - around the first 200 characters >are returned and the rest is truncated. For what it's worth, portable Ada code should not depend on exception messages longer than 200 characters, see RM 11.4.1(18). For Janus/Ada, the truncation happens because an exception occurrence only has space for 200 characters. One could change the limited, but recompilation of the runtime clearly would be needed since it would change the definition/representation of the Exception_Occurrence type. It sounds like GNAT is similar. Randy.