[Ace-users] [tao-bugs] How does DII report a user exception?
jwillemsen at remedy.nl
Tue Feb 5 13:33:03 CST 2008
> > > The Any holding return values for a DII invoke() call, contains
> > > for methods returning void. APCP states in 16.3.1, that tk_void
> > > never appear as part of an any. - Well, I guess it makes perfect
> > > in this case for the Any to hold tk_void. - But is this allowed by
> > > standard (and therefore portable)? And if so, how do I put a
> > > into an any?
Yes, see section 8.3.1 of the CORBA spec (OMG document 04-03-12). It says:
The set_result operation is used to specify any return value for the call.
set_exception is called, if the invoked operation has a non-void result
must be called exactly once before the DIR returns. If the operation has a
type, set_result may optionally be called once with an Any whose type is
2650 AC Berkel en Rodenrijs
www.theaceorb.nl / www.remedy.nl
*** Integrated compile and test statistics see
*** Commercial service and support for ACE/TAO/CIAO ***
*** See http://www.theaceorb.nl/en/support.html ***
More information about the Ace-users