[Libreoffice-commits] core.git: svx/source
Muhammet Kara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Nov 9 17:01:47 UTC 2019
svx/source/unodraw/unoshape.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 6070ef641f56cb826df884fdd846882c39a01342
Author: Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Sat Nov 9 13:28:30 2019 +0300
Commit: Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Sat Nov 9 18:00:31 2019 +0100
Add some info to the IllegalArgumentException in SvxShape
Change-Id: I31253a0410299ec2f7fbeb8bb981bdc97c66906c
Reviewed-on: https://gerrit.libreoffice.org/82351
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index 7dee8bc71e30..3f07f5ab9a82 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -2493,7 +2493,12 @@ bool SvxShape::setPropertyValueImpl( const OUString&, const SfxItemPropertySimpl
return false;
}
}
- throw lang::IllegalArgumentException();
+
+ 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)"));
+
+ throw lang::IllegalArgumentException(sExceptionMessage, nullptr, 1);
}
More information about the Libreoffice-commits
mailing list