[omniORB] Getting something out of an exception
Visscher, Bruce
VISSCHB@RJRT.com
Thu, 6 Sep 2001 19:00:50 -0400
This is a multi-part message in MIME format.
--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
charset="iso-8859-1"
Tobias,
Probably, the best bet if you really don't know what to expect is to use RTTI. I.e,
provided you have compiled with RTTI enabled, display the typeid(e).name().
BTW (to the omniORB developers), do the default omniORB compiler switches still exclude the
enabling of RTTI (-GR) on the NT platform? I never liked that idea. I realize that one use
of RTTI is for up casting and it could be argued that this isn't appropriate in a CORBA C++
environment (we're supposed to use narrow, not dynamic_cast), but I have found the ability
to report the exact name of an exception to be (extremely) useful. If you try to do this
(invoke typeid to get the type name) and RTTI isn't enabled then the C++ Run Time Library
sends a rather unfriendly message to the user.
Bruce
-----Original Message-----
From: ERIKSSON,TOBIAS (A-Sweden,ex1)
[mailto:tobias_eriksson@agilent.com]
Sent: Thursday, September 06, 2001 8:45 AM
To: omniorb-list@uk.research.att.com
Subject: [omniORB] Getting something out of an exception
Hi
I'm receiving a CORBA::SystemException but I do not know why, isn't there
any variable that can give me some hint on what wet wrong?
Regards
Tobias
--------------InterScan_NT_MIME_Boundary
Content-Type: text/plain;
name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="InterScan_Disclaimer.txt"
CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful.
--------------InterScan_NT_MIME_Boundary--