Re: [dev] UNO API exception specifications (was: [dev] Error handling in OOo, shouldn't we show additional info.)

2009-03-11 Thread Eike Rathke
Hi,

On Wednesday, 2009-03-11 09:00:45 +0100, Frank Schönheit wrote:

> > OTOH designing exceptions right is very hard and often needs a lot of
> > thinking. So I don't expect that we can fix that in a "big bang"
> > release, we will need quite some time to fix that.
> 
> I would be happy if we would allow for such fixing. I don't want to fix
> all of those at the same time, but being able to fix them incrementally,
> as they bite me, would be great.

Unfortunately, adding exceptions to a method changes the API contract,
so fixing things incrementally would incrementally destabilize API use.

We'll need some versioned API for this. I guess many are missing such
thing and didn't do useful but not required changes for just the reason
of API compatibility.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
 SunSign   0x87F8D412 : 2F58 5236 DB02 F335 8304  7D6C 65C9 F9B5 87F8 D412
 OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
 Please don't send personal mail to the e...@sun.com account, which I use for
 mailing lists only and don't read from outside Sun. Use er...@sun.com Thanks.


pgp9DGyoVExaY.pgp
Description: PGP signature


[dev] UNO API exception specifications (was: [dev] Error handling in OOo, shouldn't we show additional info.)

2009-03-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Mathias,

>> However a reasonable error handling would look like, IMO carefully
>> re-designing UNO to add more exceptions specifications to (a lot of)
>> methods is a must-have.
> 
> +1
> 
> Just to play the devil's advocate: without careful considerations that
> would end in adding "throws css.uno.Exception" to any method, though
> perhaps it's the right approach for all generic APIs (generic APIs need
> generic exceptions - don't they?).

Don't think so. I suppose the line is to be drawn (if at all) between
¨high level¨ and ¨low level¨ API (whatever that means :), where the
former has an increased chance of throwing a WrappedTargetException
(which I'd consider more appropriate than a generic Exception).

> OTOH designing exceptions right is very hard and often needs a lot of
> thinking. So I don't expect that we can fix that in a "big bang"
> release, we will need quite some time to fix that.

I would be happy if we would allow for such fixing. I don't want to fix
all of those at the same time, but being able to fix them incrementally,
as they bite me, would be great.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer frank.schoenh...@sun.com -
- Sun Microsystems  http://www.sun.com/staroffice -
- OpenOffice.org Base   http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org