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 /xmlhelp | |
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 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index fa9ac9ba6f84..911a74a4b0b9 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -374,7 +374,7 @@ public: [&aName](const beans::Property& rProp) { return aName == rProp.Name; }); if (pProp != m_aSeq.end()) return *pProp; - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aName); } sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) override @@ -416,7 +416,7 @@ void SAL_CALL ResultSetBase::setPropertyValue( aPropertyName == "RowCount" ) return; - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } @@ -433,7 +433,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue( return uno::Any(count); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(PropertyName); } @@ -459,7 +459,7 @@ void SAL_CALL ResultSetBase::addPropertyChangeListener( m_pRowCountListeners->addInterface( xListener ); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } @@ -480,7 +480,7 @@ void SAL_CALL ResultSetBase::removePropertyChangeListener( m_pRowCountListeners->removeInterface( aListener ); } else - throw beans::UnknownPropertyException(); + throw beans::UnknownPropertyException(aPropertyName); } |