summaryrefslogtreecommitdiff
path: root/stoc
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 /stoc
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 'stoc')
-rw-r--r--stoc/source/javaloader/javaloader.cxx2
-rw-r--r--stoc/source/javavm/javavm.cxx8
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx6
-rw-r--r--stoc/test/javavm/testjavavm.cxx2
-rw-r--r--stoc/test/testconv.cxx2
-rw-r--r--stoc/test/testcorefl.cxx2
-rw-r--r--stoc/test/testintrosp.cxx2
7 files changed, 12 insertions, 12 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index 2139815d357c..b634a3879895 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -356,7 +356,7 @@ css::uno::Reference<XInterface> SAL_CALL JavaComponentLoader_CreateInstance(cons
catch(const RuntimeException & runtimeException) {
SAL_INFO(
"stoc",
- "could not init javaloader due to " << runtimeException.Message);
+ "could not init javaloader due to " << runtimeException);
throw;
}
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 60a0d3fc603e..5fdb0ea1cf79 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -538,14 +538,14 @@ void initVMConfiguration(
getINetPropsFromConfig(&jvm, xSMgr, xCtx);
}
catch(const css::uno::Exception & exception) {
- SAL_INFO("stoc", "can not get INETProps because of >" << exception.Message << "<");
+ SAL_INFO("stoc", "can not get INETProps because of " << exception);
}
try {
getDefaultLocaleFromConfig(&jvm, xSMgr,xCtx);
}
catch(const css::uno::Exception & exception) {
- SAL_INFO("stoc", "can not get locale because of >" << exception.Message << "<");
+ SAL_INFO("stoc", "can not get locale because of " << exception);
}
try
@@ -553,7 +553,7 @@ void initVMConfiguration(
getJavaPropsFromSafetySettings(&jvm, xSMgr, xCtx);
}
catch(const css::uno::Exception & exception) {
- SAL_INFO("stoc", "couldn't get safety settings because of >" << exception.Message << "<");
+ SAL_INFO("stoc", "couldn't get safety settings because of " << exception);
}
*pjvm= jvm;
@@ -1333,7 +1333,7 @@ void JavaVirtualMachine::registerConfigChangesListener()
}
}catch(const css::uno::Exception & e)
{
- SAL_INFO("stoc", "could not set up listener for Configuration because of >" << e.Message << "<");
+ SAL_INFO("stoc", "could not set up listener for Configuration because of >" << e << "<");
}
}
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index 6186ad209bf8..0c222301cb15 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -651,7 +651,7 @@ void OServiceManager::disposing()
}
catch (const RuntimeException & exc)
{
- SAL_INFO("stoc", "RuntimeException occurred upon disposing factory: " << exc.Message);
+ SAL_INFO("stoc", "RuntimeException occurred upon disposing factory: " << exc);
}
}
@@ -840,7 +840,7 @@ Reference< XInterface > OServiceManager::createInstanceWithContext(
}
catch (const lang::DisposedException & exc)
{
- SAL_INFO("stoc", "DisposedException occurred: " << exc.Message);
+ SAL_INFO("stoc", "DisposedException occurred: " << exc);
}
}
@@ -894,7 +894,7 @@ Reference< XInterface > OServiceManager::createInstanceWithArgumentsAndContext(
}
catch (const lang::DisposedException & exc)
{
- SAL_INFO("stoc", "DisposedException occurred: " << exc.Message);
+ SAL_INFO("stoc", "DisposedException occurred: " << exc);
}
}
diff --git a/stoc/test/javavm/testjavavm.cxx b/stoc/test/javavm/testjavavm.cxx
index e7d0c4d5a4cc..d7602359c660 100644
--- a/stoc/test/javavm/testjavavm.cxx
+++ b/stoc/test/javavm/testjavavm.cxx
@@ -138,7 +138,7 @@ SAL_IMPLEMENT_MAIN()
}
catch (const Exception & rExc)
{
- SAL_WARN("stoc", "### exception occurred: " << rExc.Message );
+ SAL_WARN("stoc", "### exception occurred: " << rExc );
}
Reference< XComponent > xCompContext( context, UNO_QUERY );
diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx
index 1e9aae16ed42..2ed6fd712505 100644
--- a/stoc/test/testconv.cxx
+++ b/stoc/test/testconv.cxx
@@ -671,7 +671,7 @@ SAL_IMPLEMENT_MAIN()
}
catch (const Exception & rExc)
{
- SAL_WARN("stoc", "### exception occurred: " << rExc.Message );
+ SAL_WARN("stoc", "### exception occurred: " << rExc );
}
Reference< XComponent >( xMgr, UNO_QUERY )->dispose();
diff --git a/stoc/test/testcorefl.cxx b/stoc/test/testcorefl.cxx
index 3b2a02cccd8a..98aa7d768cda 100644
--- a/stoc/test/testcorefl.cxx
+++ b/stoc/test/testcorefl.cxx
@@ -367,7 +367,7 @@ SAL_IMPLEMENT_MAIN()
}
catch (const Exception & rExc)
{
- SAL_WARN("stoc", "### exception occurred: " << rExc.Message );
+ SAL_WARN("stoc", "### exception occurred: " << rExc );
}
printf( "testcorefl %s !\n", (bSucc ? "succeeded" : "failed") );
diff --git a/stoc/test/testintrosp.cxx b/stoc/test/testintrosp.cxx
index 3937f7e2bb60..c9c7aed33041 100644
--- a/stoc/test/testintrosp.cxx
+++ b/stoc/test/testintrosp.cxx
@@ -1190,7 +1190,7 @@ SAL_IMPLEMENT_MAIN()
}
catch (const Exception & rExc)
{
- SAL_WARN("stoc", "### exception occurred: " << rExc.Message );
+ SAL_WARN("stoc", "### exception occurred: " << rExc );
}
Reference< XComponent >( xMgr, UNO_QUERY )->dispose();