Hi Regina, On Thursday, 2009-07-09 15:47:06 +0200, Regina Henschel wrote:
>>> (3) I have tried to use the Message of the exception. But there I
>>> fail already in the syntax.
>>
>> The original exception's Message should be available as
>> rWrapped.TargetException.Message
>
> I fail before that place. I do not no, how to write the throw command. A
> simple
>
> throw ::com::sun::star::uno::RuntimeException("Konvergenzfehler");
>
> does not compile.
Ah, no, there's no automatic conversion from string literals to
OUString. For ASCII strings you may use the module's STRFROMASCII(s)
that is defined in analysisdefs.hxx, so
...Exception(STRFROMASCII("convergence error")) should do.
We'd prefer English messages, even if just for debugging/tracing
purposes ;-)
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 [email protected] account, which I use for
mailing lists only and don't read from outside Sun. Use [email protected] Thanks.
pgpCKNvElsKz6.pgp
Description: PGP signature
