summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-12-14 18:41:12 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-12-14 22:01:28 +0100
commitda07b237caa815540405e9e4980beb16403ecd30 (patch)
treeab7bfae001eefa5602d767a4ea8d8cbbfef99918 /sw
parentb25f4796a3c2d81d5af16183b162eb98e9f9d549 (diff)
Add exception messages
Change-Id: I17dc1673d5126e00328baa1e7a8ed9b59572f08d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx10
1 files changed, 8 insertions, 2 deletions
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;