comp.lang.ada
 help / color / mirror / Atom feed
From: marciant@earthlink.net
Subject: Re: GNAT user-specified (via Raise_Exception) warning message size limit
Date: Fri, 16 Feb 2018 15:22:09 -0800 (PST)
Date: 2018-02-16T15:22:09-08:00	[thread overview]
Message-ID: <d6a0b4df-1222-48f8-8c09-3116c9818ee0@googlegroups.com> (raw)
In-Reply-To: <bd3ddb74-4fc2-43de-93c8-9b369a6142b0@googlegroups.com>

> I am curious to know the rationale for using pretty long exception message. I have not had a situation to use exception message this long in my software career.

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.  I know: "That is abuse of exceptions!" :)  However, it seemed to be (and proved to be) an easy and robust way to debug and provide forensic logs of problems that occurred in the fielded systems.

The project had been frozen as ObjectAda 7.2.2 however we are investigating the feasibility of moving to GNAT.  The ObjectAda compiler either did not have a size restriction or we luckily had not ever reached it!  Anyway, this seems to be the last sticking point before a simple proof-of-possibility can be demonstrated.  (I might first have to try to design some addition mechanism that can be utilized very much "under the covers" that allows the current architecture to remain mostly intact.)



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

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