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 /dbaccess | |
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 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 12 | ||||
-rw-r--r-- | dbaccess/source/core/dataaccess/databasedocument.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/filter/xml/xmlfilter.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/browser/sbagrid.cxx | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index 529b33917463..4c6130706e59 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -129,7 +129,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch(const Exception& ex) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << ex.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << ex); } try { @@ -139,7 +139,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch(const SQLException& e) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << e); } // check if all keys of the updateable table are fetched @@ -185,7 +185,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch (const Exception& e) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << e); } m_xCacheSet.clear(); } @@ -225,7 +225,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch (Exception const& e) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << e); } } @@ -253,7 +253,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch (const SQLException& e) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << e); bNeedKeySet = true; } @@ -332,7 +332,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch (const SQLException& e) { - SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); + SAL_WARN("dbaccess.core", "ORowSetCache: " << e); // we couldn't create a keyset here so we have to create a static cache m_xCacheSet = new OStaticSet(i_nMaxRows); m_xCacheSet->construct(_xRs,i_sRowSetFilter); diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 75b3b4f65189..27538722ef70 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -1659,7 +1659,7 @@ void ODatabaseDocument::impl_writeStorage_throw( const Reference< XStorage >& _r } catch (const uno::Exception& e) { - SAL_WARN("dbaccess", "exception setting Version: " << e.Message); + SAL_WARN("dbaccess", "exception setting Version: " << e); } } diff --git a/dbaccess/source/filter/xml/xmlfilter.cxx b/dbaccess/source/filter/xml/xmlfilter.cxx index e0c94c6d7b43..641cb60dd4db 100644 --- a/dbaccess/source/filter/xml/xmlfilter.cxx +++ b/dbaccess/source/filter/xml/xmlfilter.cxx @@ -113,7 +113,7 @@ ErrCode ReadThroughComponent( catch (const SAXParseException& r) { #if OSL_DEBUG_LEVEL > 0 - SAL_WARN("dbaccess", "SAX parse exception caught while importing: " << r.Message << r.LineNumber << "," << r.ColumnNumber); + SAL_WARN("dbaccess", "SAX parse exception caught while importing: " << r << r.LineNumber << "," << r.ColumnNumber); #else (void)r; #endif diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index eb00026614fe..cff038d39462 100644 --- a/dbaccess/source/ui/browser/sbagrid.cxx +++ b/dbaccess/source/ui/browser/sbagrid.cxx @@ -964,7 +964,7 @@ Reference< XPropertySet > SbaGridControl::getField(sal_uInt16 nModelPos) } catch (const Exception& e) { - SAL_WARN("dbaccess", "SbaGridControl::getField Exception occurred: " << e.Message); + SAL_WARN("dbaccess", "SbaGridControl::getField Exception occurred: " << e); } return xEmptyReturn; @@ -999,7 +999,7 @@ bool SbaGridControl::IsReadOnlyDB() const } catch (const Exception& e) { - SAL_WARN("dbaccess", "SbaGridControl::IsReadOnlyDB Exception occurred: " << e.Message); + SAL_WARN("dbaccess", "SbaGridControl::IsReadOnlyDB Exception occurred: " << e); } return bDBIsReadOnly; |