diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-06-15 22:24:07 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-06-16 10:26:18 +0200 |
commit | d417c6d463b51a796769ed54eacf986b1cf86b86 (patch) | |
tree | 9047559690846e860a41dd65fc8e7fa7485f81d1 /svx/source/unodraw/unoshape.cxx | |
parent | 9aeca50f4f0c1b2503a91eb1c7d9ed8a7231e598 (diff) |
Add property name to IllegalArgumentException in SvxShape::setPropertyValueImpl
Change-Id: I5e10f2c35568449a99f1972db614199a6336e6b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135962
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 1f7db69b180d..0ef2f314d19f 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -2539,9 +2539,12 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertyMapEn } } - OUString sExceptionMessage ("IllegalArgumentException in SvxShape::setPropertyValueImpl." - " Property Type: " + pProperty->aType.getTypeName() + " Property nWID: " + OUString::number(pProperty->nWID) - + " Value Type: " + (rValue.hasValue() ? rValue.getValueTypeName() : "void (no value)")); + OUString sExceptionMessage( + "IllegalArgumentException in SvxShape::setPropertyValueImpl." + " Property Type: " + + pProperty->aType.getTypeName() + " Property Name: " + pProperty->aName + + " Property nWID: " + OUString::number(pProperty->nWID) + + " Value Type: " + (rValue.hasValue() ? rValue.getValueTypeName() : "void (no value)")); throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1); } |