diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 14:52:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 18:32:25 +0200 |
commit | b56a4eaf5eb856c36d3539dc7d2e6fa94b6551f8 (patch) | |
tree | d37ee64847c6e4eb5f748ef1d180d2651226ec53 /oox | |
parent | e51a2917ab19156f5a5d2b9474a5a46a52e9e527 (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 'oox')
-rw-r--r-- | oox/source/export/ColorPropertySet.cxx | 2 | ||||
-rw-r--r-- | oox/source/helper/propertymap.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/export/ColorPropertySet.cxx b/oox/source/export/ColorPropertySet.cxx index e1a861d52ff6..c5e1b4ae30b5 100644 --- a/oox/source/export/ColorPropertySet.cxx +++ b/oox/source/export/ColorPropertySet.cxx @@ -125,7 +125,7 @@ uno::Any SAL_CALL ColorPropertySet::getPropertyValue( const OUString& aPropertyN else if (aPropertyName == m_aColorPropName) return uno::makeAny( m_nColor ); - throw UnknownPropertyException(); + throw UnknownPropertyException(aPropertyName); } void SAL_CALL ColorPropertySet::addPropertyChangeListener( const OUString& /* aPropertyName */, const Reference< XPropertyChangeListener >& /* xListener */ ) diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index a50ca358a6ee..34a58cf12bb9 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -139,7 +139,7 @@ Any SAL_CALL GenericPropertySet::getPropertyValue( const OUString& rPropertyName { PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName ); if( aIt == maPropMap.end() ) - throw UnknownPropertyException(); + throw UnknownPropertyException(rPropertyName); return aIt->second; } @@ -169,7 +169,7 @@ Property SAL_CALL GenericPropertySet::getPropertyByName( const OUString& rProper { PropertyNameMap::iterator aIt = maPropMap.find( rPropertyName ); if( aIt == maPropMap.end() ) - throw UnknownPropertyException(); + throw UnknownPropertyException(rPropertyName); Property aProperty; aProperty.Name = aIt->first; aProperty.Handle = 0; |