From da07b237caa815540405e9e4980beb16403ecd30 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 14 Dec 2012 18:41:12 +0100 Subject: Add exception messages Change-Id: I17dc1673d5126e00328baa1e7a8ed9b59572f08d --- sw/source/ui/uno/unotxdoc.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sw') diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 2c26127bb11f..be2a5d6ea17d 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -1830,7 +1830,10 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, { SolarMutexGuard aGuard; if(!IsValid()) - throw RuntimeException(); + throw RuntimeException( + "invalid SwXTextDocument", + static_cast< cppu::OWeakObject * >( + static_cast< SwXTextDocumentBaseClass * >(this))); const SfxItemPropertySimpleEntry* pEntry = pPropSet->getPropertyMap().getByName( rPropertyName); if(!pEntry) @@ -1842,7 +1845,10 @@ void SwXTextDocument::setPropertyValue(const OUString& rPropertyName, case WID_DOC_CHAR_COUNT : case WID_DOC_PARA_COUNT : case WID_DOC_WORD_COUNT : - throw RuntimeException(); + throw RuntimeException( + "bad WID", + static_cast< cppu::OWeakObject * >( + static_cast< SwXTextDocumentBaseClass * >(this))); case WID_DOC_WORD_SEPARATOR : { OUString sDelim; -- cgit