summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-10-17 12:39:00 +0200
committerMichael Stahl <michael.stahl@cib.de>2019-10-22 17:09:30 +0200
commit6314e7bf21cb220fa84a6483f96caa75368773c5 (patch)
treee4a28375d936ccde84ddab672452eaf73caae824
parent54f292d1d199dae36257a1ceb0ff30f32a7e0824 (diff)
sw: what is that exception about
Change-Id: I00bce4bead3d593b2c2ceb06da49fd90d6fd213f Reviewed-on: https://gerrit.libreoffice.org/81080 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--sw/source/core/unocore/unobkm.cxx3
-rw-r--r--writerfilter/source/dmapper/FormControlHelper.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unobkm.cxx b/sw/source/core/unocore/unobkm.cxx
index f81ca649384f..28af288deef4 100644
--- a/sw/source/core/unocore/unobkm.cxx
+++ b/sw/source/core/unocore/unobkm.cxx
@@ -342,7 +342,8 @@ void SAL_CALL SwXBookmark::setName(const OUString& rName)
m_pImpl->m_pDoc->getIDocumentMarkAccess();
if(pMarkAccess->findMark(rName) != pMarkAccess->getAllMarksEnd())
{
- throw uno::RuntimeException();
+ throw uno::RuntimeException("setName(): name already in use",
+ static_cast<::cppu::OWeakObject*>(this));
}
SwPaM aPam(m_pImpl->m_pRegisteredBookmark->GetMarkPos());
diff --git a/writerfilter/source/dmapper/FormControlHelper.cxx b/writerfilter/source/dmapper/FormControlHelper.cxx
index 98e7bb0ba319..c916d9baa7c4 100644
--- a/writerfilter/source/dmapper/FormControlHelper.cxx
+++ b/writerfilter/source/dmapper/FormControlHelper.cxx
@@ -245,7 +245,7 @@ void FormControlHelper::processField(uno::Reference<text::XFormField> const& xFo
}
catch ( uno::Exception& )
{
- DBG_UNHANDLED_EXCEPTION("writerfilter","Set Formfield name failed");
+ TOOLS_INFO_EXCEPTION("writerfilter", "Set Formfield name failed");
}
sTmp = m_pFFData->getTextType();