summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/app/apphdl.cxx4
-rw-r--r--sw/source/uibase/config/StoredChapterNumbering.cxx6
-rw-r--r--sw/source/uibase/dbui/dbmgr.cxx16
-rw-r--r--sw/source/uibase/dbui/mmconfigitem.cxx6
4 files changed, 15 insertions, 17 deletions
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 9839eddc2d6c..11ab8fcdc312 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -405,7 +405,7 @@ bool lcl_hasAllComponentsAvailable()
{
SAL_INFO(
"sw.core",
- "assuming Base to be missing; caught " << e.Message);
+ "assuming Base to be missing; caught " << e);
return false;
}
}
@@ -428,7 +428,7 @@ void SwMailMergeWizardExecutor::ExecuteMailMergeWizard( const SfxItemSet * pArgs
{
SAL_INFO(
"sw.core",
- "trying to install LibreOffice Base, caught " << e.Message);
+ "trying to install LibreOffice Base, caught " << e);
}
return;
}
diff --git a/sw/source/uibase/config/StoredChapterNumbering.cxx b/sw/source/uibase/config/StoredChapterNumbering.cxx
index e0bc40a9ed02..271602493317 100644
--- a/sw/source/uibase/config/StoredChapterNumbering.cxx
+++ b/sw/source/uibase/config/StoredChapterNumbering.cxx
@@ -444,8 +444,7 @@ void ExportStoredChapterNumberingRules(SwChapterNumRules & rRules,
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.ui",
- "ExportStoredChapterNumberingRules: exception: " << e.Message);
+ SAL_WARN("sw.ui", "ExportStoredChapterNumberingRules: " << e);
}
}
@@ -474,8 +473,7 @@ void ImportStoredChapterNumberingRules(SwChapterNumRules & rRules,
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.ui",
- "ImportStoredChapterNumberingRules: exception: " << e.Message);
+ SAL_WARN("sw.ui", "ImportStoredChapterNumberingRules: " << e);
}
}
diff --git a/sw/source/uibase/dbui/dbmgr.cxx b/sw/source/uibase/dbui/dbmgr.cxx
index 2811c217580c..241cfaa52730 100644
--- a/sw/source/uibase/dbui/dbmgr.cxx
+++ b/sw/source/uibase/dbui/dbmgr.cxx
@@ -1737,7 +1737,7 @@ sal_uLong SwDBManager::GetColumnFormat( const OUString& rDBName,
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "Exception in getColumns(): " << e.Message);
+ SAL_WARN("sw.mailmerge", "Exception in getColumns(): " << e);
}
if(!xCols.is() || !xCols->hasByName(rColNm))
return nRet;
@@ -1829,7 +1829,7 @@ sal_uLong SwDBManager::GetColumnFormat( uno::Reference< sdbc::XDataSource> const
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "illegal number format key: " << e.Message);
+ SAL_WARN("sw.mailmerge", "illegal number format key: " << e);
}
}
}
@@ -1952,7 +1952,7 @@ uno::Reference< sdbcx::XColumnsSupplier> SwDBManager::GetColumnSupplier(uno::Ref
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "Exception in SwDBManager::GetColumnSupplier: " << e.Message);
+ SAL_WARN("sw.mailmerge", "Exception in SwDBManager::GetColumnSupplier: " << e);
}
return xRet;
@@ -2019,7 +2019,7 @@ OUString SwDBManager::GetDBField(uno::Reference<beans::XPropertySet> const & xCo
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "exception caught: " << e.Message);
+ SAL_WARN("sw.mailmerge", "exception caught: " << e);
}
}
@@ -2277,7 +2277,7 @@ static bool lcl_ToNextRecord( SwDSParam* pParam, const SwDBNextRecord action )
bRet = false;
// we allow merging with empty databases, so don't warn on init
SAL_WARN_IF(action == SwDBNextRecord::NEXT,
- "sw.mailmerge", "exception in ToNextRecord(): " << e.Message);
+ "sw.mailmerge", "exception in ToNextRecord(): " << e);
}
return bRet;
}
@@ -3037,7 +3037,7 @@ void SwDBManager::InsertText(SwWrtShell& rSh,
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "exception caught: " << e.Message);
+ SAL_WARN("sw.mailmerge", "exception caught: " << e);
}
}
}
@@ -3055,7 +3055,7 @@ uno::Reference<sdbc::XDataSource> SwDBManager::getDataSourceAsParent(const uno::
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "exception caught in getDataSourceAsParent(): " << e.Message);
+ SAL_WARN("sw.mailmerge", "exception caught in getDataSourceAsParent(): " << e);
}
return xSource;
}
@@ -3094,7 +3094,7 @@ uno::Reference<sdbc::XResultSet> SwDBManager::createCursor(const OUString& _sDat
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw.mailmerge", "Caught exception while creating a new RowSet: " << e.Message);
+ SAL_WARN("sw.mailmerge", "Caught exception while creating a new RowSet: " << e);
}
return xResultSet;
}
diff --git a/sw/source/uibase/dbui/mmconfigitem.cxx b/sw/source/uibase/dbui/mmconfigitem.cxx
index 0dbc3a088543..9c97e831ee25 100644
--- a/sw/source/uibase/dbui/mmconfigitem.cxx
+++ b/sw/source/uibase/dbui/mmconfigitem.cxx
@@ -891,7 +891,7 @@ Reference< XResultSet> SwMailMergeConfigItem::GetResultSet() const
}
catch (const Exception& e)
{
- SAL_WARN("sw.ui", "exception caught: " << e.Message);
+ SAL_WARN("sw.ui", "exception caught: " << e);
}
xRowSet->execute();
m_pImpl->m_xResultSet = xRowSet.get();
@@ -900,7 +900,7 @@ Reference< XResultSet> SwMailMergeConfigItem::GetResultSet() const
}
catch (const Exception& e)
{
- SAL_WARN("sw.ui", "exception caught in: SwMailMergeConfigItem::GetResultSet() " << e.Message);
+ SAL_WARN("sw.ui", "exception caught in: SwMailMergeConfigItem::GetResultSet() " << e);
}
}
return m_pImpl->m_xResultSet;
@@ -938,7 +938,7 @@ void SwMailMergeConfigItem::SetFilter(OUString const & rFilter)
}
catch (const Exception& e)
{
- SAL_WARN("sw.ui", "exception caught in SwMailMergeConfigItem::SetFilter(): " << e.Message);
+ SAL_WARN("sw.ui", "exception caught in SwMailMergeConfigItem::SetFilter(): " << e);
}
}
}