https://bugs.freedesktop.org/show_bug.cgi?id=85190

--- Comment #35 from Lionel Elie Mamane <[email protected]> ---
(In reply to Lionel Elie Mamane from comment #31)
> Noel, you cannot stick an arbitrary Java exception into a UNO exception,
> only a UNO exception... It will not pass the UNO barrier to C++. Please
> review your whole commit in this light.
> 
> If you want to make that kind of throwing more useful, you can do something
> like:
> 
>               Writer result = new StringWriter();
>               PrintWriter printWriter = new PrintWriter(result);
>               e.printStackTrace(printWriter);
>                 throw new
> com.sun.star.lang.WrappedTargetException(e.toString() + '\n' +
> result.toString(), this, null)

You can also separate the case of catching a UNO exception, and in this case
store the original exception, from the case of an arbitrary Java exception, and
in this case do as above.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to