[omniORB] Printing Corba exception

Guy Trudel gtrudel@mediatrix.com
Thu Jul 4 23:38:01 2002


I don't know if it's a standard way or not but I use NP_RepositoryId() (with
OmniOrb 2.8)

catch( CORBA::SystemException& exceptionSystem )
{
   printf( "%s \n", exceptionSystem.NP_RepositoryId();
}

Guy Trudel

-----Original Message-----
From: Lionel Gilet [mailto:lgilet@san-jose.tt.slb.com]
Sent: Thursday, July 04, 2002 5:32 PM
To: OmniOrb List
Subject: [omniORB] Printing Corba exception


Hi,

A quick question. I am using omniORB3.

I was surprized to not find any output method to print a text
description of a CORBA::Exception. There is no << operator or const
char* () methods or anything close to that. I looked at the CORBA specs
and I did not find anything on that subject either.
So is there a standard way to get a text description associated with a
CORBA::Exception (whether it is a SystemException or a UserException)?

Thank you

Lionel Gilet

Schlumberger / NPtest


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