[omniORB] Problem with exceptions: omniORB: WARNING

ondrej at frcatel.fri.utc.sk ondrej at frcatel.fri.utc.sk
Thu Aug 14 09:34:42 BST 2003


> Thanks, but I checked and I did declare the method with raises(PMError) in
> the
> idl. Here it is...
>
> interface ProcessingModule_cb {
>   void addInput(in ProcessingModule_cb pm) raises(PMError);
> ...
> };
>
> Any other ideas??
>
>> Date: Tue, 12 Aug 2003 17:33:05 +0200
>> From: Matej Kenda <matejkenda at volja.net>
>> Subject: Re: [omniORB] Problem with exceptions: omniORB: WARNING
>> To: palvarez at neuralarts.com
>> Cc: omniORB <omniorb-list at omniorb-support.com>,
>>         jkgoebel at neuralarts.com
>> Message-ID: <1060702384.12839.43.camel at malina.hermes.si>
>> Content-Type: text/plain; charset=UTF-8
>>
>> On Tue, 2003-08-12 at 16:55, Pablo Alvarez wrote:
>> > For some reason, omniORB does not like it when I throw a user-defined
>> > exception. Here is the situation:
>> >
>> > idl code:
>> > exception PMError {
>> >   string description;
>> > };
>> >
>> > (note no namespaces)
>> >
>> > But when I throw a PMError in a method "addInput" in my server code
>> > (throw PMError("foo")), I get the following message:
>>
>> You have most probably forgotten to declare the interface method in the
>> IDL with the 'raises(PMError)' keyword.
>>
>> Regards,
>>
>> Matej
>
> --
> Pablo Alvarez, Ph.D.
> Software Engineer
> Neural Arts, Inc.
> 21 Bay State Rd
> Boston MA 02215
>
> email: palvarez at neuralarts.com
> phone: 617 867 0235
> fax:   617 867 0240
>
>
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
>

Maybe there's a problem with (already mentioned in this mailing list)
exception handling i 2.95.x compilers which is told not to be OK. So, my
advice would be: try GCC 3.x.

Ondrej



More information about the omniORB-list mailing list