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 /xmlscript | |
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 'xmlscript')
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_export.cxx | 8 | ||||
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_import.cxx | 14 | ||||
-rw-r--r-- | xmlscript/test/imexp.cxx | 8 |
3 files changed, 15 insertions, 15 deletions
diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx index a0793905a54c..ccb58d310728 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx @@ -303,22 +303,22 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / } catch ( const container::NoSuchElementException& e ) { - SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught NoSuchElementException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught NoSuchElementException reason " << e ); bReturn = false; } catch ( const lang::IllegalArgumentException& e ) { - SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught IllegalArgumentException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught IllegalArgumentException reason " << e ); bReturn = false; } catch ( const lang::WrappedTargetException& e ) { - SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught WrappedTargetException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught WrappedTargetException reason " << e ); bReturn = false; } catch ( const xml::sax::SAXException& e ) { - SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught SAXException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "XMLBasicExporterBase::filter: caught SAXException reason " << e ); bReturn = false; } diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx index 4cf57195c8d1..33692d937f77 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_import.cxx @@ -176,11 +176,11 @@ void BasicElementBase::processingInstruction( const OUString& /*rTarget*/, const } catch ( const container::ElementExistException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught ElementExceptionExist reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught ElementExceptionExist reason " << e ); } catch ( const lang::IllegalArgumentException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught IllegalArgumentException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught IllegalArgumentException reason " << e ); } } } @@ -216,7 +216,7 @@ void BasicElementBase::processingInstruction( const OUString& /*rTarget*/, const } catch ( const lang::IllegalArgumentException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught IllegalArgumentException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicLibrariesElement::startChildElement: caught IllegalArgumentException reason " << e ); } } } @@ -252,7 +252,7 @@ void BasicElementBase::processingInstruction( const OUString& /*rTarget*/, const } catch ( const lang::WrappedTargetException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicEmbeddedLibraryElement CTOR: caught WrappedTargetException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicEmbeddedLibraryElement CTOR: caught WrappedTargetException reason " << e ); } } @@ -372,15 +372,15 @@ void BasicElementBase::processingInstruction( const OUString& /*rTarget*/, const } catch ( const container::ElementExistException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught ElementExceptionExist reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught ElementExceptionExist reason " << e ); } catch ( const lang::IllegalArgumentException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught IllegalArgumentException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught IllegalArgumentException reason " << e ); } catch ( const lang::WrappedTargetException& e ) { - SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught WrappedTargetException reason " << e.Message ); + SAL_INFO("xmlscript.xmlflat", "BasicSourceCodeElement::endElement: caught WrappedTargetException reason " << e ); } } diff --git a/xmlscript/test/imexp.cxx b/xmlscript/test/imexp.cxx index 0159e734bba2..e275179beef1 100644 --- a/xmlscript/test/imexp.cxx +++ b/xmlscript/test/imexp.cxx @@ -72,7 +72,7 @@ Reference< XComponentContext > createInitialComponentContext( catch( const Exception& rExc ) { - SAL_WARN( "xmlscript", rExc.Message ); + SAL_WARN( "xmlscript", rExc ); } return xContext; @@ -185,18 +185,18 @@ void MyApp::Main() } catch (const xml::sax::SAXException & rExc) { - OUString aStr( rExc.Message ); + OUString aStr( rExc ); uno::Exception exc; if (rExc.WrappedException >>= exc) { aStr += " >>> "; - aStr += exc.Message; + aStr += exc; } SAL_WARN( "xmlscript", aStr ); } catch (const uno::Exception & rExc) { - SAL_WARN( "xmlscript", rExc.Message ); + SAL_WARN( "xmlscript", rExc ); } Reference< lang::XComponent > xComp( xContext, UNO_QUERY ); |