Hi Eike, hi Niklas,
Eike Rathke schrieb:
Hi Regina,
On Thursday, 2009-07-09 12:17:43 +0200, Regina Henschel wrote:
(1) How do I "introduce a new exception"?
The attached (hopefully not stripped by the mailing list software)patch
I've received it.
adds the ::com::sun::star::sheet::NoConvergenceException to the offapi
module. After having applied the patch
[..]
It will take a while to do that all. Thank for your advise.
(2) ScUnoAddInCall::ExecuteCallWithArgs()
See also Niklas' reply. Adding a condition
else if ( rWrapped.TargetException.getValueType().equals(
getCppuType( (sheet::NoConvergenceException*)0 ) ) )
nErrCode = errNoConvergence;
to the
catch(reflection::InvocationTargetException& rWrapped)
block should do.
I've tried Niklas' hint using 'RuntimeException' and got the desired
error message in the cell. :) So I think, that part will work.
(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.
Hope that helps,
I'm confident.
kind regards
Regina
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]