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 /comphelper/source/property/propstate.cxx | |
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 'comphelper/source/property/propstate.cxx')
-rw-r--r-- | comphelper/source/property/propstate.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx index 52085f98e80b..d48a72d094cf 100644 --- a/comphelper/source/property/propstate.cxx +++ b/comphelper/source/property/propstate.cxx @@ -80,7 +80,7 @@ namespace comphelper sal_Int32 nHandle = rPH.getHandleByName(_rsName); if (nHandle == -1) - throw css::beans::UnknownPropertyException(); + throw css::beans::UnknownPropertyException(_rsName); return getPropertyStateByHandle(nHandle); } @@ -92,7 +92,7 @@ namespace comphelper sal_Int32 nHandle = rPH.getHandleByName(_rsName); if (nHandle == -1) - throw css::beans::UnknownPropertyException(); + throw css::beans::UnknownPropertyException(_rsName); setPropertyToDefaultByHandle(nHandle); } @@ -104,7 +104,7 @@ namespace comphelper sal_Int32 nHandle = rPH.getHandleByName(_rsName); if (nHandle == -1) - throw css::beans::UnknownPropertyException(); + throw css::beans::UnknownPropertyException(_rsName); return getPropertyDefaultByHandle(nHandle); } |