summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-08-25 13:31:25 +0200
committerMichael Stahl <mstahl@redhat.com>2017-08-25 17:58:56 +0200
commitae3ba018bfe066854fd787e2938441e4cc1316e1 (patch)
treebe7539db8692cbb489e19746353f7eef5d2f1d3f /unoxml
parentbb4e52096db668533bae40f5155749a9986108a2 (diff)
unoxml: CDocumentBuilder: just catch all Exception
Turns out that XErrorHandler can throw SAXException too, which isn't derived from RuntimeException. Change-Id: Ib853805259b5b32a979e4f9a20297975431dee08
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/documentbuilder.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx
index e8eb6097c23d..0b5aa5d583d7 100644
--- a/unoxml/source/dom/documentbuilder.cxx
+++ b/unoxml/source/dom/documentbuilder.cxx
@@ -292,7 +292,7 @@ namespace DOM
pDocBuilder->getErrorHandler()->warning(::css::uno::Any(saxex));
}
}
- catch (const css::uno::RuntimeException &e)
+ catch (const css::uno::Exception &e)
{
// Protect lib2xml from UNO Exception
SAL_WARN("unoxml",
@@ -326,7 +326,7 @@ namespace DOM
pDocBuilder->getErrorHandler()->error(::css::uno::Any(saxex));
}
}
- catch (const css::uno::RuntimeException &e)
+ catch (const css::uno::Exception &e)
{
// Protect lib2xml from UNO Exception
SAL_WARN("unoxml",