summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-01-26 16:31:42 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-01-27 10:57:18 +0000
commit845d4eb7bc20a6eadf08b0fe0939c51c3cbf3a62 (patch)
treeacf58b0785219eeb297c07ca002e2fb9b927034c /stoc
parent94ffb720b889c51665ebb789d84aee3b3bacb456 (diff)
stoc: try to throw more informative exceptions
... from IdlInterfaceMethodImpl::invoke(), which is somewhere involved in BASIC calls. Change-Id: I739f70fec56ec9e4345511eefe41fd0f8df8bf6f Reviewed-on: https://gerrit.libreoffice.org/33593 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/criface.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index 254f1a35267d..a6b4395c8dc1 100644
--- a/stoc/source/corereflection/criface.cxx
+++ b/stoc/source/corereflection/criface.cxx
@@ -650,7 +650,10 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > &
if (! bAssign)
{
IllegalArgumentException aExc(
- "cannot coerce argument type during corereflection call!",
+ "cannot coerce argument type during corereflection call:"
+ "\narg no.: " + OUString::number(nPos)
+ + " expected: \"" + OUString(pTD->pTypeName)
+ + "\" actual: \"" + OUString(pCppArgs[nPos].getValueTypeRef()->pTypeName),
*o3tl::doAccess<Reference<XInterface>>(rObj), (sal_Int16)nPos );
// cleanup