comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: GNAT user-specified (via Raise_Exception) warning message size limit
Date: Sat, 17 Feb 2018 08:15:01 +0100
Date: 2018-02-17T08:15:01+01:00	[thread overview]
Message-ID: <p68nu1$9i2$1@dont-email.me> (raw)
In-Reply-To: <d6a0b4df-1222-48f8-8c09-3116c9818ee0@googlegroups.com>

Le 17/02/2018 à 00:22, marciant@earthlink.net a écrit :
> Some XML text messages are being parsed "deep" down in a subsystem
> and when a problem is encountered a specific exception is raised and
> the problematic XML text is included in the exception message and
> propagated up a "level" or two of code where it is sometimes parsed
> again and repropagated with additional debugging information.
But why do you put all the message in the exception message?

Store it in some global structure, where you can handle it any way you
want. Note that it's what you'd do if you wanted to keep information
other than string (assuming you have no issue with concurrency, but then
you could use a task attribute)

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

  reply	other threads:[~2018-02-17  7:15 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 [this message]
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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox