summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-29 16:21:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-04 15:18:00 +0200
commit2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch)
treee0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /scripting
parenta3088b1e72ef17babe3d3664c610afd02cfe0891 (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 'scripting')
-rw-r--r--scripting/source/protocolhandler/scripthandler.cxx4
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx2
-rw-r--r--scripting/source/provider/MasterScriptProvider.cxx5
-rw-r--r--scripting/source/vbaevents/eventhelper.cxx2
4 files changed, 6 insertions, 7 deletions
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 );
}
}
}