Re: Throwing exceptions



Jules Colding wrote:

>Hi all,
>
>Just two very silly questions.. 
>
>1) How do I throw an exception with ORBit2 ? 
>
the C-example here demonstrates how to use  CORBA_exception_set()
http://user.cs.tu-berlin.de/~frehberg/ORBit2_Tutorial.html

>2) Should I explicitly call CORBA_exception_init() on the ev parameter
>in all of my methods if I want to throw an exception??
>
no, do not call CORBA_exception_init() on the ev.
The 'ev' argument given to implementation of  servant operation should 
be initialized, allrady.

Cheers, Frank




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]