Re: Throwing exceptions
- From: Frank Rehberger <Frank Rehberger web de>
- To: Jules Colding <JuBColding yorkref com>
- Cc: orbit-list gnome org
- Subject: Re: Throwing exceptions
- Date: Wed, 28 May 2003 14:15:00 +0200
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]