| commit | 096baf452992b91ce07a3ade9e7b3c0f4283df39 | [log] |
|---|---|---|
| author | Michael Stahl <mstahl@redhat.com> | Thu Jan 26 16:31:42 2017 +0100 |
| committer | Katarina Behrens <Katarina.Behrens@cib.de> | Tue Jan 31 09:18:11 2017 +0000 |
| tree | 6f67d9b037910e83b172e69c5dbe083458af624f | |
| parent | 4b605ca21b15ff4cbd734291e21ab02c5e57c424 [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> (cherry picked from commit 845d4eb7bc20a6eadf08b0fe0939c51c3cbf3a62) Reviewed-on: https://gerrit.libreoffice.org/33711
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index d61123c..36131c1 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx
@@ -673,7 +673,11 @@ 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