summaryrefslogtreecommitdiff
path: root/basic/source/classes
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 14:52:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-26 18:32:25 +0200
commitb56a4eaf5eb856c36d3539dc7d2e6fa94b6551f8 (patch)
treed37ee64847c6e4eb5f748ef1d180d2651226ec53 /basic/source/classes
parente51a2917ab19156f5a5d2b9474a5a46a52e9e527 (diff)
add property name when throwing css::uno::UnknownPropertyException
Change-Id: I17f06c9415b9d43b6d8896360e07216c2856367a Reviewed-on: https://gerrit.libreoffice.org/79627 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/classes')
-rw-r--r--basic/source/classes/sbunoobj.cxx4
-rw-r--r--basic/source/classes/sbxmod.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 2c668165310c..2834ae87234c 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -4204,7 +4204,7 @@ void SAL_CALL ModuleInvocationProxy::setValue(const OUString& rProperty, const A
{
// TODO: Check vba behavior concerning missing function
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
- throw UnknownPropertyException();
+ throw UnknownPropertyException(aPropertyFunctionName);
}
// Setup parameter
@@ -4242,7 +4242,7 @@ Any SAL_CALL ModuleInvocationProxy::getValue(const OUString& rProperty)
{
// TODO: Check vba behavior concerning missing function
//StarBASIC::Error( ERRCODE_BASIC_NO_METHOD, aFunctionName );
- throw UnknownPropertyException();
+ throw UnknownPropertyException(aPropertyFunctionName);
}
// Call method
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 35fdb4bd0937..72811562ac92 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -293,7 +293,7 @@ DocObjectWrapper::setValue( const OUString& aPropertyName, const Any& aValue )
SbPropertyRef pProperty = getProperty( aPropertyName );
if ( !pProperty.is() )
- throw UnknownPropertyException();
+ throw UnknownPropertyException(aPropertyName);
unoToSbxValue( pProperty.get(), aValue );
}
@@ -305,7 +305,7 @@ DocObjectWrapper::getValue( const OUString& aPropertyName )
SbPropertyRef pProperty = getProperty( aPropertyName );
if ( !pProperty.is() )
- throw UnknownPropertyException();
+ throw UnknownPropertyException(aPropertyName);
SbxVariable* pProp = pProperty.get();
if ( pProp->GetType() == SbxEMPTY )