unoxml: CDocumentBuilder: just catch all Exception

Turns out that XErrorHandler can throw SAXException too, which isn't
derived from RuntimeException.

Change-Id: Ib853805259b5b32a979e4f9a20297975431dee08
This commit is contained in:
Michael Stahl
2017-08-25 13:31:25 +02:00
parent bb4e52096d
commit ae3ba018bf

View File

@@ -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",