summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 16:20:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-09 08:46:34 +0200
commit48fbfe38f60de731ff8bec0372179bedd6670af4 (patch)
tree2a1bbc4a2207d049d38c058d7f4ebb06a4f01182 /writerperfect
parent115a8539038ecdd5e496fb6c84101c5b14d11068 (diff)
use more DBG_UNHANDLED_EXCEPTION
so we get nice logs of the exception dynamic type for UNO exceptions. Change-Id: Ic0b10dc14d354a2c9a0591b3a51d2f1640d54bdb Reviewed-on: https://gerrit.libreoffice.org/52465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/writer/exp/xmlimp.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx
index b1991a5ce506..9ef9afa837c1 100644
--- a/writerperfect/source/writer/exp/xmlimp.cxx
+++ b/writerperfect/source/writer/exp/xmlimp.cxx
@@ -23,6 +23,7 @@
#include <tools/stream.hxx>
#include <tools/urlobj.hxx>
#include <unotools/streamwrap.hxx>
+#include <tools/diagnose_ex.h>
#include "xmlfmt.hxx"
#include "xmlictxt.hxx"
@@ -77,9 +78,9 @@ OUString FindMediaDir(const OUString &rDocumentBaseURL, const uno::Sequence<bean
{
aMediaDir = rtl::Uri::convertRelToAbs(rDocumentBaseURL, aURL.GetBase()) + "/";
}
- catch (const rtl::MalformedUriException &rException)
+ catch (const rtl::MalformedUriException &)
{
- SAL_WARN("writerperfect", "FindMediaDir: convertRelToAbs() failed:" << rException.getMessage());
+ DBG_UNHANDLED_EXCEPTION("writerperfect");
}
return aMediaDir;
}
@@ -199,9 +200,9 @@ void FindXMPMetadata(const uno::Reference<uno::XComponentContext> &xContext, con
{
xParser->parseStream(aInputSource);
}
- catch (const uno::Exception &rException)
+ catch (const uno::Exception &)
{
- SAL_WARN("writerperfect", "FindXMPMetadata: parseStream() failed:" << rException.Message);
+ DBG_UNHANDLED_EXCEPTION("writerperfect", "parseStream() failed");
return;
}
}
@@ -399,9 +400,9 @@ PopupState XMLImport::FillPopupData(const OUString &rURL, librevenge::RVNGProper
{
xUriRef = mxUriReferenceFactory->parse(rURL);
}
- catch (const uno::Exception &rException)
+ catch (const uno::Exception &)
{
- SAL_WARN("writerperfect", "XMLImport::FillPopupData: XUriReference::parse() failed:" << rException.Message);
+ DBG_UNHANDLED_EXCEPTION("writerperfect", "XUriReference::parse() failed");
}
bool bAbsolute = true;
if (xUriRef.is())