From 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 29 Sep 2017 16:21:54 +0200 Subject: add << operator for css::uno::Exception Change-Id: Ia23dafd07133779144965682df3b7125a3214235 Reviewed-on: https://gerrit.libreoffice.org/43046 Reviewed-by: Stephan Bergmann Tested-by: Jenkins --- scripting/source/protocolhandler/scripthandler.cxx | 4 ++-- scripting/source/provider/BrowseNodeFactoryImpl.cxx | 2 +- scripting/source/provider/MasterScriptProvider.cxx | 5 ++--- scripting/source/vbaevents/eventhelper.cxx | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) (limited to 'scripting') diff --git a/scripting/source/protocolhandler/scripthandler.cxx b/scripting/source/protocolhandler/scripthandler.cxx index ebd942aecf6a..4dd2d8da5fa2 100644 --- a/scripting/source/protocolhandler/scripthandler.cxx +++ b/scripting/source/protocolhandler/scripthandler.cxx @@ -161,7 +161,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( SAL_WARN("scripting", "ScriptProtocolHandler::dispatchWithNotification: caught RuntimeException" "while dispatchFinished with failure of the execution " - << e.Message ); + << e ); } } return; @@ -291,7 +291,7 @@ void SAL_CALL ScriptProtocolHandler::dispatchWithNotification( { SAL_WARN("scripting", "ScriptProtocolHandler::dispatchWithNotification: caught RuntimeException" - "while dispatchFinished " << e.Message ); + "while dispatchFinished " << e ); } } } diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index e064556d61e9..aafa2f1d5e03 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -293,7 +293,7 @@ std::vector< Reference< browse::XBrowseNode > > getAllBrowseNodes( const Referen // TODO proper exception handling, should throw catch( const Exception& e ) { - SAL_WARN("scripting", "Caught Exception " << e.Message ); + SAL_WARN("scripting", "Caught " << e ); locnBNs.resize( mspIndex ); return locnBNs; } diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index d9d829197e6c..12c336caf84f 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -209,7 +209,7 @@ void MasterScriptProvider::createPkgProvider() catch ( const Exception& e ) { SAL_WARN("scripting.provider", "Exception creating MasterScriptProvider for uno_packages in context " - << m_sCtxString << ": " << e.Message ); + << m_sCtxString << ": " << e ); } } @@ -504,8 +504,7 @@ MasterScriptProvider::insertByName( const OUString& aName, const Any& aElement ) } catch ( Exception& e ) { - SAL_INFO( - "scripting.provider", "ignoring Exception " << e.Message); + SAL_INFO("scripting.provider", "ignoring " << e); } } diff --git a/scripting/source/vbaevents/eventhelper.cxx b/scripting/source/vbaevents/eventhelper.cxx index 837a8329f285..9690771027b1 100644 --- a/scripting/source/vbaevents/eventhelper.cxx +++ b/scripting/source/vbaevents/eventhelper.cxx @@ -927,7 +927,7 @@ EventListener::firing_Impl(const ScriptEvent& evt, Any* pRet ) } catch ( uno::Exception& e ) { - SAL_WARN("scripting", "event script raised " << e.Message ); + SAL_WARN("scripting", "event script raised " << e ); } } } -- cgit