Kaydet (Commit) 845d4eb7 authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Katarina Behrens

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/33593Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 94ffb720
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment