diff options
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/access/accmap.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/edit/edundo.cxx | 9 | ||||
-rw-r--r-- | sw/source/core/layout/layact.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/tox/toxhlp.cxx | 12 | ||||
-rw-r--r-- | sw/source/core/view/viewimp.cxx | 2 |
5 files changed, 12 insertions, 15 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"); } } |