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 /sfx2/source | |
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 'sfx2/source')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/sidebar/Theme.cxx | 24 |
3 files changed, 16 insertions, 16 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 5d4e46e40caa..f56169ecd1ec 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -702,7 +702,7 @@ void SAL_CALL ShutdownIcon::setFastPropertyValue( ::sal_Int32 break; default : - throw css::beans::UnknownPropertyException(); + throw css::beans::UnknownPropertyException(OUString::number(nHandle)); } } @@ -720,7 +720,7 @@ css::uno::Any SAL_CALL ShutdownIcon::getFastPropertyValue( ::sal_Int32 nHandle ) break; default : - throw css::beans::UnknownPropertyException(); + throw css::beans::UnknownPropertyException(OUString::number(nHandle)); } return aValue; diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index 2bbdd75ae027..8b1271545dfb 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -242,7 +242,7 @@ void SAL_CALL IFrameObject::setPropertyValue(const OUString& aPropertyName, cons { const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName ); if( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); switch( pEntry->nWID ) { case WID_FRAME_URL: @@ -322,7 +322,7 @@ uno::Any SAL_CALL IFrameObject::getPropertyValue(const OUString& aPropertyName) { const SfxItemPropertySimpleEntry* pEntry = maPropMap.getByName( aPropertyName ); if( !pEntry ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); uno::Any aAny; switch( pEntry->nWID ) { diff --git a/sfx2/source/sidebar/Theme.cxx b/sfx2/source/sidebar/Theme.cxx index a5a1ed3e94b0..90ab20e46f15 100644 --- a/sfx2/source/sidebar/Theme.cxx +++ b/sfx2/source/sidebar/Theme.cxx @@ -425,11 +425,11 @@ Any SAL_CALL Theme::getPropertyValue ( { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const ThemeItem eItem (iId->second); @@ -445,11 +445,11 @@ void SAL_CALL Theme::addPropertyChangeListener( { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); eItem = iId->second; } @@ -467,11 +467,11 @@ void SAL_CALL Theme::removePropertyChangeListener( { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); eItem = iId->second; } @@ -499,11 +499,11 @@ void SAL_CALL Theme::addVetoableChangeListener( { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); eItem = iId->second; } @@ -521,11 +521,11 @@ void SAL_CALL Theme::removeVetoableChangeListener( { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); eItem = iId->second; } @@ -572,11 +572,11 @@ beans::Property SAL_CALL Theme::getPropertyByName (const OUString& rsPropertyNam { PropertyNameToIdMap::const_iterator iId (maPropertyNameToIdMap.find(rsPropertyName)); if (iId == maPropertyNameToIdMap.end()) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const PropertyType eType (GetPropertyType(iId->second)); if (eType == PT_Invalid) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rsPropertyName); const ThemeItem eItem (iId->second); |