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 /editeng | |
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 'editeng')
-rw-r--r-- | editeng/source/uno/unofield.cxx | 4 | ||||
-rw-r--r-- | editeng/source/uno/unotext.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx index 94ca091bead8..0a20a3e6cadf 100644 --- a/editeng/source/uno/unofield.cxx +++ b/editeng/source/uno/unofield.cxx @@ -715,7 +715,7 @@ void SAL_CALL SvxUnoTextField::setPropertyValue( const OUString& aPropertyName, const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( aPropertyName ); if ( !pMap ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); switch( pMap->nWID ) { @@ -770,7 +770,7 @@ uno::Any SAL_CALL SvxUnoTextField::getPropertyValue( const OUString& PropertyNam const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMap().getByName( PropertyName ); if ( !pMap ) - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(PropertyName); switch( pMap->nWID ) { diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx index a8d80c2fb881..8015933395df 100644 --- a/editeng/source/uno/unotext.cxx +++ b/editeng/source/uno/unotext.cxx @@ -476,7 +476,7 @@ void SvxUnoTextRangeBase::_setPropertyValue( const OUString& PropertyName, const } } - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(PropertyName); } void SvxUnoTextRangeBase::setPropertyValue( const SfxItemPropertySimpleEntry* pMap, const uno::Any& rValue, const ESelection& rSelection, const SfxItemSet& rOldSet, SfxItemSet& rNewSet ) @@ -618,7 +618,7 @@ uno::Any SvxUnoTextRangeBase::_getPropertyValue(const OUString& PropertyName, sa } } - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(PropertyName); } void SvxUnoTextRangeBase::getPropertyValue( const SfxItemPropertySimpleEntry* pMap, uno::Any& rAny, const SfxItemSet& rSet ) @@ -1056,7 +1056,7 @@ uno::Sequence< beans::PropertyState > SvxUnoTextRangeBase::_getPropertyStates(co const SfxItemPropertySimpleEntry* pMap = mpPropSet->getPropertyMapEntry( rName ); if( !_getOnePropertyStates(pSet.get(), pMap, *pState++) ) { - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(rName); } } } @@ -1172,7 +1172,7 @@ void SvxUnoTextRangeBase::_setPropertyToDefault(const OUString& PropertyName, sa } } - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(PropertyName); } void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemPropertySimpleEntry* pMap, sal_Int32 nPara ) @@ -1258,7 +1258,7 @@ uno::Any SAL_CALL SvxUnoTextRangeBase::getPropertyDefault( const OUString& aProp } } } - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } // beans::XMultiPropertyStates |