Re: [Fwd: Re: Throwing exceptions]



On Wed, 2003-05-28 at 14:55, Frank Rehberger wrote:
> >I can see that you are returning NULL in your
> >impl_PostOffice_Counter_fetch_letter_for() method when something goes
> >wrong. 

> >I just noticed that the method return "struct Letter" (the IDL type),
> >not an interface. So shouldn't you return a valid pointer to
> >PostOffice_Letter even though that you have thrown an exception?
...
> AFAIK, if operation throws exception the POA-manager (object manager) 
> should not care about return value.

	Quite correct; indeed - the return value is 'undefined' - code for
'poke at your peril' ;-) In future development I'd like our results to
be defined on exception but for now ...

	HTH,

		Michael.

-- 
 michael@ximian.com  <><, Pseudo Engineer, itinerant idiot




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