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

bjorn rohde jensen bjensen@fastmail.fm
Sun Aug 4 10:22:01 2002


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