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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,699cc914522aa7c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news.glorb.com!uns-out.usenetserver.com!news.usenetserver.com!pc02.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Structured exception information References: From: Stephen Leake Date: Tue, 16 Jan 2007 08:30:00 -0500 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:xfjckjzDX9+ZFQgKk9r4Q+e93L4= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 4c4ff45acd36a759e00d431540 Xref: g2news2.google.com comp.lang.ada:8168 Date: 2007-01-16T08:30:00-05:00 List-Id: Maciej Sobczak writes: > X : My_Type := My_Constructor(Some_Parameters); > > If there are problems during the execution of the constructor > function, the exception is raised, so that there is no X object in a > bad state. > How can I pass some error information from the constructor function > out, so that it's used when the exception is handled? Why do you want to? Generally, all you can do is report the error to the user. Can you give a detailed example of passing more complex information that is actually used? -- -- Stephe