From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: GNAT user-specified (via Raise_Exception) warning message size limit
Date: Fri, 16 Feb 2018 18:03:10 -0600
Date: 2018-02-16T18:03:10-06:00 [thread overview]
Message-ID: <p67rfv$pn7$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: 789f6417-5e6f-4d5f-8abb-80246f4f405a@googlegroups.com
<marciant@earthlink.net> 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.
prev parent reply other threads:[~2018-02-17 0:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 18:44 GNAT user-specified (via Raise_Exception) warning message size limit marciant
2018-02-16 18:59 ` Per Sandberg
2018-02-16 19:11 ` marciant
2018-02-16 20:58 ` Anh Vo
2018-02-16 23:22 ` marciant
2018-02-17 7:15 ` J-P. Rosen
2018-02-17 16:38 ` marciant
2018-02-18 22:33 ` Mark Lorenzen
2018-02-18 23:09 ` Simon Wright
2018-02-19 7:24 ` briot.emmanuel
2018-02-19 15:31 ` marciant
2018-02-22 15:08 ` marciant
2018-02-22 19:48 ` marciant
2018-02-22 20:27 ` Simon Wright
2018-02-22 21:43 ` Mark Lorenzen
2018-02-22 22:09 ` marciant
2018-02-23 8:25 ` briot.emmanuel
2018-02-23 8:56 ` Simon Wright
2018-02-17 0:03 ` Randy Brukardt [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox