On 07/09/09 12:17, Regina Henschel wrote:
(2) I have tried the following too. Instead of my provisional return 888.88; I write throw ::com::sun::star::uno::RuntimeException(); Now the spreadsheet shows #VALUE! in cell and Error: Wrong data type in status bar in that cases.But it shows this, whatever I write in ScUnoAddInCall::ExecuteCallWithArgs(). I have tried it there withcatch(uno::RuntimeException&) { nErrCode = errNoConvergence; } and (only for testing) with catch(uno::Exception&) { // nErrCode = errNoValue; nErrCode = errDivisionByZero; } Where comes the #VALUE! from?
XIdlMethod::invoke wraps exceptions from the add-in in an InvocationTargetException. You have to extend the handling of that one.
Niklas --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
