[Libreoffice] uno discoverability
Michael Stahl
mstahl at redhat.com
Wed Nov 16 03:15:02 PST 2011
On 16/11/11 11:25, Michael Meeks wrote:
>
> On Tue, 2011-11-15 at 20:34 +0100, Michael Stahl wrote:
>> in a lot of UNO API implementations the only form of error reporting
>> used is "throw RuntimeException;", which leaves (as you correctly note)
>> a lot to be desired in terms of usability for the hapless API user.
>
> Quite :-)
EasyHack filed:
https://bugs.freedesktop.org/show_bug.cgi?id=42982
>> this definitely ought to be an easy hack, as putting a more helpful
>> error message in there can really be done by anyone: patches welcome.
>
> IMHO we need to make that code efficient by having a var-args style
> helper:
>
> throw FooException("Failure loading file '%S' code %d",
> aOUStr.pData, nCode);
>
> That would also be fairly code size efficient as well vs. the
> heavy-lifting, and big string-buffer construction madness :-)
Stephan recently added an OSL_FORMAT, that should be useful here...
More information about the LibreOffice
mailing list