summaryrefslogtreecommitdiff
path: root/sw/source/uibase/dbui/dbmgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 15:56:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 13:31:26 +0200
commit889dc7bffa02236bf2ad56b382997771f0fcf3c6 (patch)
treee7fc2c8748972bb1ed4acb98fd92ff08a8670f7b /sw/source/uibase/dbui/dbmgr.cxx
parent9a97a26511584f41c3753fa9536e1c4a8dce637a (diff)
use more TOOLS_WARN_EXCEPTION
Change-Id: Ic21ea11ff106e0732bb8fa600ef39a549d7bda86 Reviewed-on: https://gerrit.libreoffice.org/77569 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/dbui/dbmgr.cxx')
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 5be3ddce23e5..6222a37c51ea 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -2075,8 +2075,7 @@ OUString SwDBManager::GetDBField(uno::Reference<beans::XPropertySet> const & xCo
}
catch (const uno::Exception&)
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN("sw.mailmerge", "exception caught: " << exceptionToString(ex));
+ TOOLS_WARN_EXCEPTION("sw.mailmerge", "");
}
}
@@ -3166,8 +3165,7 @@ void SwDBManager::InsertText(SwWrtShell& rSh,
}
catch (const uno::Exception&)
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN("sw.mailmerge", "exception caught: " << exceptionToString(ex));
+ TOOLS_WARN_EXCEPTION("sw.mailmerge", "");
}
}
}
@@ -3185,8 +3183,7 @@ uno::Reference<sdbc::XDataSource> SwDBManager::getDataSourceAsParent(const uno::
}
catch (const uno::Exception&)
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN("sw.mailmerge", "exception caught in getDataSourceAsParent(): " << exceptionToString(ex));
+ TOOLS_WARN_EXCEPTION("sw.mailmerge", "getDataSourceAsParent()");
}
return xSource;
}
@@ -3226,8 +3223,7 @@ uno::Reference<sdbc::XResultSet> SwDBManager::createCursor(const OUString& _sDat
}
catch (const uno::Exception&)
{
- css::uno::Any ex( cppu::getCaughtException() );
- SAL_WARN("sw.mailmerge", "Caught exception while creating a new RowSet: " << exceptionToString(ex));
+ TOOLS_WARN_EXCEPTION("sw.mailmerge", "Caught exception while creating a new RowSet");
}
return xResultSet;
}