Hi Andreas, thanks for the in-depth explanations, see my comments to some items below.
> Let's start with the testtool. The testtool Basic is not similar > to OOo Basic, it *is* OOo Basic, extended by some testtool speci- > fic commands and some convenience functionality. The try/catch > belongs to the latter. According to Gregor it's only another syn- > tax for the on error functionality that is supported by Basic any- > way. On error also supports UNO exceptions but in a very limited > way. Every UNO exception is mapped to the Basic Runtime Error 1. hey, so we get try/catch for free ;) > So it's possible to identify an error as UNO exception but it's > not possible to identify which exception it is. > ... > IIRC there is one main problem to realize a better support, es- > pecially to allow catching specific exceptions: > ... > Maybe the problem is solved in the mean time, but at least when > I addressed this problem the first time, there was no way to > get the real (UNO) exception type from e. If there is a way now, > e.g. by using C++ RTTI, the implementation of a better exception > support in OOo Basic really shouldn't be too difficult. ::cppu::getCaughtException could be used. It returns an Any, which contains the full exception which has just been caught. Quite convenient, I use it all the time since I know about it ... (RTTI won't work since our Exception classes are not polymorphic - since css.uno.Exception does not have any virtual methods.) >> I seriously think we should address this - for better UNO access in >> Basic, and on the medium term probably also for better VBA compatibility. > > I agree that better UNO exception support in OOo Basic would be > good, but I don't see the connection to VBA compatibility. VB(A) > does not support exceptions as far as I know, only On Error. > This is different for VB.net but VB.net != VB(A). Ah, sorry for confusing things here. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
