diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-29 16:21:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-04 15:18:00 +0200 |
commit | 2c05d758b2b62c9df413e2514fb3cd233d0f3ec7 (patch) | |
tree | e0a23d3da6fb17ae97d18957fc14f4a4a8de2d3f /sd | |
parent | a3088b1e72ef17babe3d3664c610afd02cfe0891 (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 'sd')
-rw-r--r-- | sd/source/core/stlsheet.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/xml/sdxmlwrp.cxx | 12 | ||||
-rw-r--r-- | sd/source/helper/simplereferencecomponent.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/tools/ConfigurationAccess.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/DrawController.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsa.cxx | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index 14c36e4a845f..03cfc50aee50 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -678,7 +678,7 @@ void SAL_CALL SdStyleSheet::release( ) throw () } catch (RuntimeException const& exc) { // don't break throw () - SAL_WARN( "sd", exc.Message ); + SAL_WARN( "sd", exc ); } OSL_ASSERT( mrBHelper.bDisposed ); SdStyleSheetBase::release(); diff --git a/sd/source/filter/xml/sdxmlwrp.cxx b/sd/source/filter/xml/sdxmlwrp.cxx index b9222c679ffa..405ad7595ce6 100644 --- a/sd/source/filter/xml/sdxmlwrp.cxx +++ b/sd/source/filter/xml/sdxmlwrp.cxx @@ -244,7 +244,7 @@ ErrCode ReadThroughComponent( if( bEncrypted ) return ERRCODE_SFX_WRONGPASSWORD; - SAL_WARN( "sd.filter", "SAX parse exception caught while importing:" << r.Message); + SAL_WARN( "sd.filter", "SAX parse exception caught while importing:" << r); OUString sErr( OUString::number( r.LineNumber )); sErr += ","; @@ -274,22 +274,22 @@ ErrCode ReadThroughComponent( if( bEncrypted ) return ERRCODE_SFX_WRONGPASSWORD; - SAL_WARN( "sd.filter", "SAX exception caught while importing:" << r.Message); + SAL_WARN( "sd.filter", "SAX exception caught while importing:" << r); return SD_XML_READERROR; } catch (const packages::zip::ZipIOException& r) { - SAL_WARN( "sd.filter", "Zip exception caught while importing:" << r.Message); + SAL_WARN( "sd.filter", "Zip exception caught while importing:" << r); return ERRCODE_IO_BROKENPACKAGE; } catch (const io::IOException& r) { - SAL_WARN( "sd.filter", "IO exception caught while importing:" << r.Message); + SAL_WARN( "sd.filter", "IO exception caught while importing:" << r); return SD_XML_READERROR; } catch (const uno::Exception& r) { - SAL_WARN( "sd.filter", "uno exception caught while importing:" << r.Message); + SAL_WARN( "sd.filter", "uno exception caught while importing:" << r); return SD_XML_READERROR; } @@ -990,7 +990,7 @@ bool SdXMLFilter::Export() } catch (const uno::Exception &e) { - SAL_WARN( "sd.filter", "uno Exception caught while exporting:" << e.Message); + SAL_WARN( "sd.filter", "uno Exception caught while exporting:" << e); bDocRet = false; } if ( !bLocked ) diff --git a/sd/source/helper/simplereferencecomponent.cxx b/sd/source/helper/simplereferencecomponent.cxx index 4d0234743e83..b2f55ad3832a 100644 --- a/sd/source/helper/simplereferencecomponent.cxx +++ b/sd/source/helper/simplereferencecomponent.cxx @@ -54,7 +54,7 @@ void SimpleReferenceComponent::release() } catch (RuntimeException & exc ) // don't break throw () { - SAL_WARN( "sd", exc.Message ); + SAL_WARN( "sd", exc ); } } diff --git a/sd/source/ui/tools/ConfigurationAccess.cxx b/sd/source/ui/tools/ConfigurationAccess.cxx index 2b9285c6ebc2..d06dd5929f6a 100644 --- a/sd/source/ui/tools/ConfigurationAccess.cxx +++ b/sd/source/ui/tools/ConfigurationAccess.cxx @@ -106,7 +106,7 @@ Any ConfigurationAccess::GetConfigurationNode ( } catch (const Exception& rException) { - SAL_WARN("sd", "caught exception while getting configuration node" << sPathToNode << ": " << rException.Message); + SAL_WARN("sd", "caught exception while getting configuration node" << sPathToNode << ": " << rException); } return Any(); diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index ba6b31ebe8b5..c64647442829 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -424,7 +424,7 @@ void DrawController::FireSwitchCurrentPage (SdPage* pNewCurrentPage) throw() } catch (const uno::Exception& e) { - SAL_WARN("sd", "sd::SdUnoDrawView::FireSwitchCurrentPage(), exception caught: " << e.Message); + SAL_WARN("sd", "sd::SdUnoDrawView::FireSwitchCurrentPage(), exception caught: " << e); } } } diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 90d75e5871f3..52ecca7729da 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -322,7 +322,7 @@ void SAL_CALL SdXImpressDocument::release() throw ( ) } catch (const uno::RuntimeException& exc) { // don't break throw () - SAL_WARN( "sd", exc.Message ); + SAL_WARN( "sd", exc ); } } SfxBaseModel::release(); diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 06ae7dae72b1..0fedb24f1b56 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -330,7 +330,7 @@ void DrawViewShell::Construct(DrawDocShell* pDocSh, PageKind eInitialPageKind) { // Eat the exception and log it // We can still continue if scanner manager is not available. - SAL_WARN("sd", "Scanner manager exception: " << exception.Message); + SAL_WARN("sd", "Scanner manager exception: " << exception); } mpAnnotationManager.reset( new AnnotationManager( GetViewShellBase() ) ); |