[omniORB] Questions about self defined exception raising

Martin Trappel 0xCDCDCDCD at gmx.at
Mon Mar 17 08:16:51 GMT 2008


* Corba User Exceptions are defined in IDL
* There is NO exception inheritance for Corba User Exceptions
* If you throw something that is derived from std::exception from a 
servant method you will get a CORBA::UNKNOWN in the client.


Luo Yongheng wrote:
> Nobody ever talks about exception handling in servants. Here is a question:
>  
> If I define my own exception classes, say, derived from standard C++ 
> exceptions, and raise them in my servants, how can I catch them in the 
> main thread? It seems impossible, since we can not control the exception 
> handling in the worker thread that runs into my servants.
>  
> Anybody has any idea?
>  
>  
> Thierry
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list




More information about the omniORB-list mailing list