[Libreoffice-commits] core.git: stoc/source
Michael Stahl
mstahl at redhat.com
Fri Jan 27 10:58:09 UTC 2017
stoc/source/corereflection/criface.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 845d4eb7bc20a6eadf08b0fe0939c51c3cbf3a62
Author: Michael Stahl <mstahl at redhat.com>
Date: Thu Jan 26 16:31:42 2017 +0100
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 at libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index 254f1a35..a6b4395 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
More information about the Libreoffice-commits
mailing list