[omniORB] CORBA::Exception::_name() ?

Mann, Gary (London) MannGar@exchange.uk.ml.com
Sun Aug 4 22:06:50 2002


If you want this to work with OmniORB, you may need to rebuild the ORB from
scratch with the RTTI compiler flags enabled. Last time I tried this, I
found that the OmniORB 3.0.4 VC6 makefiles left it turned off by default.
This may have changed in 3.05 however.

Gary

-----Original Message-----
From: bjorn rohde jensen [mailto:bjensen@fastmail.fm] 
Sent: 04 August 2002 10:21
To: Mark Crosland
Cc: omniorb-list@realvnc.com
Subject: Re: [omniORB] CORBA::Exception::_name() ?


Hi Mark,

 You can use ordinary C++ RTTI to get the name
of the thrown exception; ie

catch(CORBA::Exception &e){  std::cout<<typeid(e).name()<<std::endl;
...
}

Some orbs have ostream inserters too, i forgot, if
omniORB has those. The RTTI approach should be
vendor neutral:)

Yours sincerely,

Bjorn
_______________________________________________
omniORB-list mailing list
omniORB-list@realvnc.com
http://www.realvnc.com/mailman/listinfo/omniorb-list