[omniORB] Questions about self defined exception raising
Luo Yongheng
langsir at yeah.net
Mon Mar 17 17:30:28 GMT 2008
I understand that, but that is the problem. I don't want to raise exceptions
to clients. I just want to raise some exceptions that are supposed to be
captured by server side, like some logical errors in the servant. These kind
of errors are not supposed to be handled by the clients.
----- Original Message -----
From: "Martin Trappel" <0xCDCDCDCD at gmx.at>
To: <omniORB-list at omniorb-support.com>
Sent: Monday, March 17, 2008 3:16 PM
Subject: Re: [omniORB] Questions about self defined exception raising
>
> * 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
>
>
> _______________________________________________
> 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