diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-02 16:27:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-03 08:13:29 +0200 |
commit | 547b1d054162a73d49a828bed140ab8671da2ff8 (patch) | |
tree | d1e2f14c39440d678ba27cb5bd52ab91e8e499d0 /ucb | |
parent | 1f40a488fcf95f90fdd18c41ef7041d475cf08a2 (diff) |
use more TOOLS_WARN_EXCEPTION
Change-Id: I8b5cde993c13e0b7c8c830b1ff698933a6b7cfd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103863
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/core/ucb.cxx | 5 | ||||
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx | 3 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavdatasupplier.cxx | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/ucb/source/core/ucb.cxx b/ucb/source/core/ucb.cxx index 64f74ec26d00..f49dd87a4939 100644 --- a/ucb/source/core/ucb.cxx +++ b/ucb/source/core/ucb.cxx @@ -42,6 +42,7 @@ #include <cppuhelper/weak.hxx> #include <ucbhelper/cancelcommandexecution.hxx> #include <ucbhelper/macros.hxx> +#include <tools/diagnose_ex.h> #include "identify.hxx" #include "ucbcmds.hxx" @@ -847,14 +848,14 @@ bool UniversalContentBroker::getContentProviderData( } catch (const uno::RuntimeException&) { - SAL_WARN( "ucb", "caught RuntimeException!" ); + TOOLS_WARN_EXCEPTION( "ucb", "" ); return false; } catch (const uno::Exception&) { // createInstance, createInstanceWithArguments - SAL_WARN( "ucb", "caught Exception!" ); + TOOLS_WARN_EXCEPTION( "ucb", "" ); return false; } diff --git a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx index 7675f6c5d418..b87d987752fb 100644 --- a/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav-neon/webdavdatasupplier.cxx @@ -39,6 +39,7 @@ #include <com/sun/star/ucb/ResultSetException.hpp> #include <ucbhelper/contentidentifier.hxx> #include <ucbhelper/providerhelper.hxx> +#include <tools/diagnose_ex.h> #include <memory> #include <vector> #include "webdavdatasupplier.hxx" @@ -378,7 +379,7 @@ bool DataSupplier::getData() } catch ( DAVException & ) { - SAL_WARN( "ucb.ucp.webdav", "Running PROPFIND: DAVException" ); + TOOLS_WARN_EXCEPTION( "ucb.ucp.webdav", "Running PROPFIND: DAVException" ); m_pImpl->m_bThrowException = true; } diff --git a/ucb/source/ucp/webdav/webdavdatasupplier.cxx b/ucb/source/ucp/webdav/webdavdatasupplier.cxx index 6001b8665f4c..8be3a0d401d2 100644 --- a/ucb/source/ucp/webdav/webdavdatasupplier.cxx +++ b/ucb/source/ucp/webdav/webdavdatasupplier.cxx @@ -33,6 +33,7 @@ #include "SerfUri.hxx" #include <com/sun/star/ucb/IllegalIdentifierException.hpp> #include <com/sun/star/ucb/ResultSetException.hpp> +#include <tools/diagnose_ex.h> using namespace com::sun::star; using namespace http_dav_ucp; @@ -357,7 +358,7 @@ bool DataSupplier::getData() } catch ( DAVException & ) { - SAL_WARN( "ucb.ucp.webdav", "PROPFIND : DAVException" ); + TOOLS_WARN_EXCEPTION( "ucb.ucp.webdav", "PROPFIND : DAVException" ); m_pImpl->m_bThrowException = true; } |