Kaydet (Commit) ae3ba018 authored tarafından Michael Stahl's avatar Michael Stahl

unoxml: CDocumentBuilder: just catch all Exception

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

Change-Id: Ib853805259b5b32a979e4f9a20297975431dee08
üst bb4e5209
...@@ -292,7 +292,7 @@ namespace DOM ...@@ -292,7 +292,7 @@ namespace DOM
pDocBuilder->getErrorHandler()->warning(::css::uno::Any(saxex)); pDocBuilder->getErrorHandler()->warning(::css::uno::Any(saxex));
} }
} }
catch (const css::uno::RuntimeException &e) catch (const css::uno::Exception &e)
{ {
// Protect lib2xml from UNO Exception // Protect lib2xml from UNO Exception
SAL_WARN("unoxml", SAL_WARN("unoxml",
...@@ -326,7 +326,7 @@ namespace DOM ...@@ -326,7 +326,7 @@ namespace DOM
pDocBuilder->getErrorHandler()->error(::css::uno::Any(saxex)); pDocBuilder->getErrorHandler()->error(::css::uno::Any(saxex));
} }
} }
catch (const css::uno::RuntimeException &e) catch (const css::uno::Exception &e)
{ {
// Protect lib2xml from UNO Exception // Protect lib2xml from UNO Exception
SAL_WARN("unoxml", SAL_WARN("unoxml",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment