Re: [dev] UNO API exception specifications

2009-03-12 Thread Mathias Bauer
Frank Schönheit - Sun Microsystems Germany wrote: Not sure we need versioning, but we definitely need to way to (carefully) break compatibility. As I've been told, this has been a topic on this week's engineering steering committee meeting ... I think we never will allow breaking

Re: [dev] UNO API exception specifications

2009-03-12 Thread Mathias Bauer
Frank Schönheit - Sun Microsystems Germany wrote: Hi Rony, *The former: it is just frustrating to have a program bomb and get a message like exception occurred. (Yielding the message: go, figure...)* which nicely fits into the original thread :) Fixing those exceptions (which I

[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

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

Re: [dev] UNO API exception specifications

2009-03-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Eike, 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

Re: [dev] UNO API exception specifications

2009-03-11 Thread Stephan Bergmann
On 03/11/09 11:43, Frank Schönheit - Sun Microsystems Germany wrote: The only problem I see is that classes implementing the respective interface need to be adjusted, too, which of course is error prone. If this adjustment is not made, implementations throwing the new exception might crash (at

Re: [dev] UNO API exception specifications

2009-03-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Stephan, The only problem I see is that classes implementing the respective interface need to be adjusted, too, which of course is error prone. If this adjustment is not made, implementations throwing the new exception might crash (at least on platforms where the compiler respects the

Re: [dev] UNO API exception specifications

2009-03-11 Thread rony
Frank Schönheit - Sun Microsystems Germany wrote: Hi Stephan, The only problem I see is that classes implementing the respective interface need to be adjusted, too, which of course is error prone. If this adjustment is not made, implementations throwing the new exception might crash (at

Re: [dev] UNO API exception specifications

2009-03-11 Thread Stephan Bergmann
On 03/11/09 15:12, rony wrote: [Yes, I wholeheartedly agree, that the current situation is many times frustrating, especially for beginners in an area of OOo (even experts of one or two modules are beginners if turning to new modules). There is a lot of resources that is being wasted just to

Re: [dev] UNO API exception specifications

2009-03-11 Thread Rony G. Flatscher
Stephan Bergmann wrote: On 03/11/09 15:12, rony wrote: [Yes, I wholeheartedly agree, that the current situation is many times frustrating, especially for beginners in an area of OOo (even experts of one or two modules are beginners if turning to new modules). There is a lot of resources that

Re: [dev] UNO API exception specifications

2009-03-11 Thread rony
Stephan Bergmann wrote: On 03/11/09 15:12, rony wrote: [Yes, I wholeheartedly agree, that the current situation is many times frustrating, especially for beginners in an area of OOo (even experts of one or two modules are beginners if turning to new modules). There is a lot of resources that

Re: [dev] UNO API exception specifications

2009-03-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Rony, *The former: it is just frustrating to have a program bomb and get a message like exception occurred. (Yielding the message: go, figure...)* which nicely fits into the original thread :) Fixing those exceptions (which I consider buggy in the current messageless-shape) to carry a