[omniORB] RE: Exception(const Exception &)

Alex Shabarshoff shura@uc.ru
Tue, 11 Sep 2001 10:11:41 +0400


> I am trying to do the following, which fails because the above 
> constructor is protected:
>     try {
>         ...
>     } catch (CORBA::Exception &ex) {
>         /* log exception and clear up here*/
>         throw ex; /* this line will not compile */
>     }

Use just "throw;" instead of "thow ex;".

Best regards,  
  Alex Shabarshoff (mailto:shura@uc.ru)

Program Systems ans Technologies
Chief of Security Systems Development Department