summaryrefslogtreecommitdiff
path: root/xmlscript/test
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 /xmlscript/test
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 'xmlscript/test')
-rw-r--r--xmlscript/test/imexp.cxx8
1 files changed, 4 insertions, 4 deletions
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 );