diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-29 16:21:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-04 15:18:00 +0200 |
commit | 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch) | |
tree | e0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /unoxml | |
parent | a3088b1e72ef17babe3d3664c610afd02cfe0891 (diff) |
add << operator for css::uno::Exception
Change-Id: Ia23dafd07133779144965682df3b7125a3214235
Reviewed-on: https://gerrit.libreoffice.org/43046
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'unoxml')
-rw-r--r-- | unoxml/source/dom/documentbuilder.cxx | 12 | ||||
-rw-r--r-- | unoxml/source/dom/elementlist.cxx | 3 |
2 files changed, 5 insertions, 10 deletions
diff --git a/unoxml/source/dom/documentbuilder.cxx b/unoxml/source/dom/documentbuilder.cxx index 0b5aa5d583d7..d0e7ad0121e3 100644 --- a/unoxml/source/dom/documentbuilder.cxx +++ b/unoxml/source/dom/documentbuilder.cxx @@ -200,7 +200,7 @@ namespace DOM memcpy(buffer, chunk.getConstArray(), nread); return nread; } catch (const css::uno::Exception& ex) { - SAL_WARN( "unoxml", ex.Message); + SAL_WARN( "unoxml", ex); return -1; } } @@ -219,7 +219,7 @@ namespace DOM delete pctx; return 0; } catch (const css::uno::Exception& ex) { - SAL_WARN( "unoxml", ex.Message); + SAL_WARN( "unoxml", ex); return -1; } } @@ -295,9 +295,7 @@ namespace DOM catch (const css::uno::Exception &e) { // Protect lib2xml from UNO Exception - SAL_WARN("unoxml", - "DOM::warning_func: caught RuntimeException" - << e.Message); + SAL_WARN("unoxml", "DOM::warning_func: caught " << e); } } @@ -329,9 +327,7 @@ namespace DOM catch (const css::uno::Exception &e) { // Protect lib2xml from UNO Exception - SAL_WARN("unoxml", - "DOM::error_func: caught RuntimeException" - << e.Message); + SAL_WARN("unoxml", "DOM::error_func: caught " << e); } } } // extern "C" diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx index f4dcfba1136c..3d6057f0d056 100644 --- a/unoxml/source/dom/elementlist.cxx +++ b/unoxml/source/dom/elementlist.cxx @@ -107,8 +107,7 @@ namespace DOM m_xEventListener = new WeakEventListener(this); xTarget->addEventListener("DOMSubtreeModified", m_xEventListener, false/*capture*/); } catch (const Exception &e){ - SAL_WARN( "unoxml", "Exception caught while registering NodeList as listener: " - << e.Message); + SAL_WARN( "unoxml", "Exception caught while registering NodeList as listener: " << e); } } |