summaryrefslogtreecommitdiff
path: root/sw/source
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 /sw/source
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 'sw/source')
-rw-r--r--sw/source/core/access/accmap.cxx2
-rw-r--r--sw/source/core/edit/edundo.cxx9
-rw-r--r--sw/source/core/layout/layact.cxx2
-rw-r--r--sw/source/core/tox/toxhlp.cxx12
-rw-r--r--sw/source/core/view/viewimp.cxx2
-rw-r--r--sw/source/filter/docx/swdocxreader.cxx2
-rw-r--r--sw/source/filter/rtf/swparrtf.cxx2
-rw-r--r--sw/source/filter/writer/writer.cxx2
-rw-r--r--sw/source/filter/ww8/docxexport.cxx2
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx2
-rw-r--r--sw/source/filter/ww8/rtfsdrexport.cxx2
-rw-r--r--sw/source/filter/ww8/ww8par.cxx2
-rw-r--r--sw/source/filter/ww8/ww8toolbar.cxx2
-rw-r--r--sw/source/filter/xml/swxml.cxx10
-rw-r--r--sw/source/filter/xml/xmlfmt.cxx2
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx2
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx2
-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
21 files changed, 43 insertions, 48 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 3d0dd877409e..9e69ee7cf077 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -193,7 +193,7 @@ void SwDrawModellListener_Impl::Notify( SfxBroadcaster& /*rBC*/,
}
catch( uno::RuntimeException const & r )
{
- SAL_WARN("sw.a11y", "Runtime exception caught while notifying shape: " << r.Message);
+ SAL_WARN("sw.a11y", "Runtime exception caught while notifying shape: " << r);
}
}
}
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index 58b8af364f45..4591c535d6a5 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -132,8 +132,7 @@ bool SwEditShell::Undo(sal_uInt16 const nCount)
|| bRet;
}
} catch (const css::uno::Exception & e) {
- SAL_WARN("sw.core",
- "SwEditShell::Undo(): exception caught: " << e.Message);
+ SAL_WARN("sw.core", "SwEditShell::Undo(): exception caught: " << e);
}
if (bRestoreCursor)
@@ -188,8 +187,7 @@ bool SwEditShell::Redo(sal_uInt16 const nCount)
|| bRet;
}
} catch (const css::uno::Exception & e) {
- SAL_WARN("sw.core",
- "SwEditShell::Redo(): exception caught: " << e.Message);
+ SAL_WARN("sw.core", "SwEditShell::Redo(): exception caught: " << e);
}
Pop((bRestoreCursor) ? PopMode::DeleteCurrent : PopMode::DeleteStack);
@@ -218,8 +216,7 @@ bool SwEditShell::Repeat(sal_uInt16 const nCount)
bRet = GetDoc()->GetIDocumentUndoRedo().Repeat( context, nCount )
|| bRet;
} catch (const css::uno::Exception & e) {
- SAL_WARN("sw.core",
- "SwEditShell::Repeat(): exception caught: " << e.Message);
+ SAL_WARN("sw.core", "SwEditShell::Repeat(): exception caught: " << e);
}
EndAllAction();
diff --git a/sw/source/core/layout/layact.cxx b/sw/source/core/layout/layact.cxx
index e0ebc69ca6d3..70047724f494 100644
--- a/sw/source/core/layout/layact.cxx
+++ b/sw/source/core/layout/layact.cxx
@@ -1923,7 +1923,7 @@ bool SwLayIdle::DoIdleJob_( const SwContentFrame *pCnt, IdleJobType eJob )
pImp->GetShell()->InvalidateWindows( aRepaint );
} catch( const css::uno::RuntimeException& e) {
// handle smarttag problems gracefully and provide diagnostics
- SAL_WARN( "sw.core", "SMART_TAGS Exception:" << e.Message);
+ SAL_WARN( "sw.core", "SMART_TAGS: " << e);
}
if (Application::AnyInput(VCL_INPUT_ANY & VclInputFlags(~VclInputFlags::TIMER)))
return true;
diff --git a/sw/source/core/tox/toxhlp.cxx b/sw/source/core/tox/toxhlp.cxx
index 9ad441bb4abf..7bdd2d3d0130 100644
--- a/sw/source/core/tox/toxhlp.cxx
+++ b/sw/source/core/tox/toxhlp.cxx
@@ -33,7 +33,7 @@ IndexEntrySupplierWrapper::IndexEntrySupplierWrapper()
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "IndexEntrySupplierWrapper: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "IndexEntrySupplierWrapper: Caught " << e );
}
}
@@ -51,7 +51,7 @@ OUString IndexEntrySupplierWrapper::GetIndexKey( const OUString& rText,
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "getIndexKey: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "getIndexKey: Caught " << e );
}
return sRet;
}
@@ -64,7 +64,7 @@ OUString IndexEntrySupplierWrapper::GetFollowingText( bool bMorePages ) const
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "getIndexFollowPageWord: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "getIndexFollowPageWord: Caught " << e );
}
return sRet;
}
@@ -78,7 +78,7 @@ css::uno::Sequence< OUString > IndexEntrySupplierWrapper::GetAlgorithmList( cons
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "getAlgorithmList: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "getAlgorithmList: Caught " << e );
}
return sRet;
}
@@ -93,7 +93,7 @@ bool IndexEntrySupplierWrapper::LoadAlgorithm(
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "loadAlgorithm: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "loadAlgorithm: Caught " << e );
}
return bRet;
}
@@ -111,7 +111,7 @@ sal_Int16 IndexEntrySupplierWrapper::CompareIndexEntry(
}
catch (const uno::Exception& e)
{
- SAL_WARN( "sw.core", "compareIndexEntry: Caught exception: " << e.Message );
+ SAL_WARN( "sw.core", "compareIndexEntry: Caught " << e );
}
return nRet;
}
diff --git a/sw/source/core/view/viewimp.cxx b/sw/source/core/view/viewimp.cxx
index 22ea4ad88244..7a79eabc2600 100644
--- a/sw/source/core/view/viewimp.cxx
+++ b/sw/source/core/view/viewimp.cxx
@@ -304,7 +304,7 @@ void SwViewShellImp::UpdateAccessible()
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.a11y", "exception: " << e.Message);
+ SAL_WARN("sw.a11y", e);
assert(!"SwViewShellImp::UpdateAccessible: unhandled exception");
}
}
diff --git a/sw/source/filter/docx/swdocxreader.cxx b/sw/source/filter/docx/swdocxreader.cxx
index 5dcbb557c63d..60b028b8e608 100644
--- a/sw/source/filter/docx/swdocxreader.cxx
+++ b/sw/source/filter/docx/swdocxreader.cxx
@@ -84,7 +84,7 @@ ErrCode SwDOCXReader::Read(SwDoc& rDoc, const OUString& /* rBaseURL */, SwPaM& r
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.docx", "SwDOCXReader::Read(): exception: " << e.Message);
+ SAL_WARN("sw.docx", "SwDOCXReader::Read(): " << e);
ret = ERR_SWG_READ_ERROR;
}
return ret;
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx
index 2b8632fad14c..99fd13ab0a33 100644
--- a/sw/source/filter/rtf/swparrtf.cxx
+++ b/sw/source/filter/rtf/swparrtf.cxx
@@ -93,7 +93,7 @@ ErrCode SwRTFReader::Read(SwDoc& rDoc, const OUString& /*rBaseURL*/, SwPaM& rPam
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.rtf", "SwRTFReader::Read(): exception: " << e.Message);
+ SAL_WARN("sw.rtf", "SwRTFReader::Read(): " << e);
ret = ERR_SWG_READ_ERROR;
}
diff --git a/sw/source/filter/writer/writer.cxx b/sw/source/filter/writer/writer.cxx
index 50cd3a3812c4..bcd03f2b8db0 100644
--- a/sw/source/filter/writer/writer.cxx
+++ b/sw/source/filter/writer/writer.cxx
@@ -254,7 +254,7 @@ ErrCode Writer::Write( SwPaM& rPaM, SvStream& rStrm, const OUString* pFName )
}
catch (const css::ucb::ContentCreationException &e)
{
- SAL_WARN("sw", "Writer::Write caught " << e.Message);
+ SAL_WARN("sw", "Writer::Write caught " << e);
}
return nResult;
}
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index c3df2b0cf18f..166c7c78c268 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -409,7 +409,7 @@ OString DocxExport::WriteOLEObject(SwOLEObj& rObject, OUString & io_rProgID)
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.ww8", "DocxExport::WriteOLEObject: exception: " << e.Message);
+ SAL_WARN("sw.ww8", "DocxExport::WriteOLEObject: " << e);
return OString();
}
diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index 383d598aa7a7..720a923f5861 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -1099,7 +1099,7 @@ void DocxSdrExport::writeDiagramRels(const uno::Sequence< uno::Sequence< uno::An
}
catch (const uno::Exception& rException)
{
- SAL_WARN("sw.ww8", "DocxSdrExport::writeDiagramRels Failed to copy grabbaged Image: " << rException.Message);
+ SAL_WARN("sw.ww8", "DocxSdrExport::writeDiagramRels Failed to copy grabbaged Image: " << rException);
}
dataImagebin->closeInput();
}
diff --git a/sw/source/filter/ww8/rtfsdrexport.cxx b/sw/source/filter/ww8/rtfsdrexport.cxx
index 9241b6fe529d..b8ca0b47bcb7 100644
--- a/sw/source/filter/ww8/rtfsdrexport.cxx
+++ b/sw/source/filter/ww8/rtfsdrexport.cxx
@@ -454,7 +454,7 @@ void RtfSdrExport::impl_writeGraphic()
catch (beans::UnknownPropertyException& rException)
{
// ATM groupshapes are not supported, just make sure we don't crash on them.
- SAL_WARN("sw.rtf", "failed. Message: " << rException.Message);
+ SAL_WARN("sw.rtf", "failed. Message: " << rException);
return;
}
OString aURLBS(OUStringToOString(sGraphicURL, RTL_TEXTENCODING_UTF8));
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index c63cb2502269..395a6cd57330 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4930,7 +4930,7 @@ ErrCode SwWW8ImplReader::CoreLoad(WW8Glossary const *pGloss)
}
catch (const uno::Exception& rException)
{
- SAL_WARN("sw.ww8", "SwWW8ImplReader::CoreLoad: failed to initialize RDF metadata: " << rException.Message);
+ SAL_WARN("sw.ww8", "SwWW8ImplReader::CoreLoad: failed to initialize RDF metadata: " << rException);
}
ReadDocInfo();
}
diff --git a/sw/source/filter/ww8/ww8toolbar.cxx b/sw/source/filter/ww8/ww8toolbar.cxx
index 33a4547ae6ba..ecc5e6b66bc8 100644
--- a/sw/source/filter/ww8/ww8toolbar.cxx
+++ b/sw/source/filter/ww8/ww8toolbar.cxx
@@ -589,7 +589,7 @@ bool SwCTB::ImportCustomToolBar( SwCTBWrapper& rWrapper, CustomToolBarImportHelp
}
catch( const uno::Exception& e )
{
- SAL_INFO("sw.ww8","***** For some reason we have an exception " << e.Message );
+ SAL_INFO("sw.ww8","***** For some reason we have an " << e );
bRes = false;
}
return bRes;
diff --git a/sw/source/filter/xml/swxml.cxx b/sw/source/filter/xml/swxml.cxx
index 515d3a6b2dfa..bd37e18b2634 100644
--- a/sw/source/filter/xml/swxml.cxx
+++ b/sw/source/filter/xml/swxml.cxx
@@ -196,7 +196,7 @@ ErrCode ReadThroughComponent(
if( bEncrypted )
return ERRCODE_SFX_WRONGPASSWORD;
- SAL_WARN( "sw", "SAX parse exception caught while importing: " << r.Message );
+ SAL_WARN( "sw", "SAX parse exception caught while importing: " << r );
const OUString sErr( OUString::number( r.LineNumber )
+ ","
@@ -226,22 +226,22 @@ ErrCode ReadThroughComponent(
if( bEncrypted )
return ERRCODE_SFX_WRONGPASSWORD;
- SAL_WARN( "sw", "SAX exception caught while importing: " << r.Message);
+ SAL_WARN( "sw", "SAX exception caught while importing: " << r);
return ERR_SWG_READ_ERROR;
}
catch(const packages::zip::ZipIOException& r)
{
- SAL_WARN( "sw", "Zip exception caught while importing: " << r.Message);
+ SAL_WARN( "sw", "Zip exception caught while importing: " << r);
return ERRCODE_IO_BROKENPACKAGE;
}
catch(const io::IOException& r)
{
- SAL_WARN( "sw", "IO exception caught while importing: " << r.Message);
+ SAL_WARN( "sw", "IO exception caught while importing: " << r);
return ERR_SWG_READ_ERROR;
}
catch(const uno::Exception& r)
{
- SAL_WARN( "sw", "uno exception caught while importing: " << r.Message );
+ SAL_WARN( "sw", "uno exception caught while importing: " << r );
return ERR_SWG_READ_ERROR;
}
diff --git a/sw/source/filter/xml/xmlfmt.cxx b/sw/source/filter/xml/xmlfmt.cxx
index 4b0af71ddf6b..7c129e072d52 100644
--- a/sw/source/filter/xml/xmlfmt.cxx
+++ b/sw/source/filter/xml/xmlfmt.cxx
@@ -343,7 +343,7 @@ SwXMLTextStyleContext_Impl::Finish( bool bOverwrite )
}
catch (uno::Exception const& e)
{
- SAL_WARN("sw.xml", "exception when setting ParaStyleConditions: " << e.Message);
+ SAL_WARN("sw.xml", "exception when setting ParaStyleConditions: " << e);
}
}
XMLTextStyleContext::Finish( bOverwrite );
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index fc4ad77224b0..aa655be4af6c 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1173,7 +1173,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
catch (const Exception& rExcept)
{
- SAL_WARN("sw", rExcept.Message);
+ SAL_WARN("sw", rExcept);
}
}
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 17ee1512e736..d966be4d7981 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -182,7 +182,7 @@ IMPL_LINK_NOARG(SwMailMergeAddressBlockPage, AddressListHdl_Impl, Button*, void)
}
catch (const uno::Exception& e)
{
- SAL_WARN("sw", e.Message);
+ SAL_WARN("sw", e);
ScopedVclPtrInstance<MessageDialog>(this, e.Message)->Execute();
}
}
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);
}
}
}