Issue 144: Rethrowing exceptions (cxx_revision) Source: (, ) Nature: Uncategorized Severity: Summary: Summary: If all I want to do is rethrow an exception in my C++ client code, there is no convenient and compliant way. It would be useful to add extra members to allow this. Resolution: Fixed by Portability submission Revised Text: Actions taken: October 1, 1996: Received issue January 2, 1998: closed issue Discussion: End of Annotations:===== >From jon@sems.com Mon Sep 30 20:19:10 1996 Received: from ns.sems.com by amethyst.omg.org.omg.org (5.4R2.01/1.34) id AA05114; Mon, 30 Sep 1996 20:19:10 -0400 Received: from vaccine-bb.netlabs.com (vaccine-bb.sems.com) by proxy.netlabs.com (4.1/SMI-4.1) id AA03395; Mon, 30 Sep 96 16:11:50 PDT Received: from clamp.netlabs.com by vaccine-bb.netlabs.com (4.1/SMI-4.1) id AA00858; Mon, 30 Sep 96 17:17:33 PDT Received: from clamp by clamp.netlabs.com (SMI-8.6/SMI-SVR4) id RAA23933; Mon, 30 Sep 1996 17:17:31 -0700 Sender: jon@sems.com Message-Id: <32506319.7DDB@sems.com> Date: Mon, 30 Sep 1996 17:17:29 -0700 From: Jonathan Biggar Organization: Seagate Enterprise Management Software X-Mailer: Mozilla 3.0 (X11; I; SunOS 5.5.1 sun4m) Mime-Version: 1.0 To: cxx_revision@omg.org, issues@omg.org Subject: Exception usage issues Content-Type: text/plain; charset=us-ascii 3. If all I want to do is to rethrow the exception in my C++ client code, there is no convenient way to do this that is compliant. The only choice now is to use a sequence of dynamic_cast<> (or _narrow) calls and then throw a copy of the correct exception type. It would be very useful to add the following two members to CORBA::Exception: virtual Exception * _duplicate(); void _raise(); The former would duplicate the exception with the correct dynamic type. The latter would simply throw a copy of the dynamic type of the exception. Jon Biggar jon@sems.com