summaryrefslogtreecommitdiff
path: root/basic
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 /basic
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 'basic')
-rw-r--r--basic/source/basmgr/basmgr.cxx4
-rw-r--r--basic/source/classes/eventatt.cxx5
-rw-r--r--basic/source/uno/namecont.cxx8
3 files changed, 9 insertions, 8 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx
index 2342510bbd54..211daeb8ccfa 100644
--- a/basic/source/basmgr/basmgr.cxx
+++ b/basic/source/basmgr/basmgr.cxx
@@ -1141,7 +1141,7 @@ bool BasicManager::RemoveLib( sal_uInt16 nLib, bool bDelBasicFromStorage )
}
catch (const css::ucb::ContentCreationException& e)
{
- SAL_WARN("basic", "BasicManager::RemoveLib: Caught exception: " << e.Message);
+ SAL_WARN("basic", "BasicManager::RemoveLib: " << e);
}
if (xStorage.is() && xStorage->IsStorage(szBasicStorage))
@@ -1328,7 +1328,7 @@ StarBASIC* BasicManager::CreateLib( const OUString& rLibName, const OUString& Pa
}
catch (const css::ucb::ContentCreationException& e)
{
- SAL_WARN("basic", "BasicManager::RemoveLib: Caught exception: " << e.Message);
+ SAL_WARN("basic", "BasicManager::RemoveLib: " << e);
}
DBG_ASSERT( pLib, "XML Import: Linked basic library could not be loaded");
}
diff --git a/basic/source/classes/eventatt.cxx b/basic/source/classes/eventatt.cxx
index 7dc252a9d58b..e7003e7eb550 100644
--- a/basic/source/classes/eventatt.cxx
+++ b/basic/source/classes/eventatt.cxx
@@ -51,6 +51,7 @@
#include <eventatt.hxx>
#include <cppuhelper/implbase.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::script;
@@ -117,11 +118,11 @@ void SFURL_firing_impl( const ScriptEvent& aScriptEvent, Any* pRet, const Refere
}
catch ( const RuntimeException& re )
{
- SAL_INFO("basic", "Caught RuntimeException reason " << re.Message);
+ SAL_INFO("basic", "Caught RuntimeException reason " << re);
}
catch ( const Exception& e )
{
- SAL_INFO("basic", "Caught Exception reason " << e.Message);
+ SAL_INFO("basic", "Caught Exception reason " << e);
}
}
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 64de45125e2b..fb26916676f6 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -421,7 +421,7 @@ BasicManager* SfxLibraryContainer::getBasicManager()
}
catch (const css::ucb::ContentCreationException& e)
{
- SAL_WARN( "basic", "SfxLibraryContainer::getBasicManager : Caught exception: " << e.Message );
+ SAL_WARN( "basic", "SfxLibraryContainer::getBasicManager: " << e );
}
return mpBasMgr;
}
@@ -808,12 +808,12 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
}
catch ( const xml::sax::SAXException& e )
{
- SAL_WARN("basic", e.Message);
+ SAL_WARN("basic", e);
return;
}
catch ( const io::IOException& e )
{
- SAL_WARN("basic", e.Message);
+ SAL_WARN("basic", e);
return;
}
@@ -1177,7 +1177,7 @@ void SfxLibraryContainer::init_Impl( const OUString& rInitialDocumentURL,
catch(const Exception& e)
{
bCleanUp = true;
- SAL_WARN("basic", "Upgrade of Basic installation failed somehow: " << e.Message);
+ SAL_WARN("basic", "Upgrade of Basic installation failed somehow: " << e);
}
// #i93163