diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-04-29 13:14:53 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-04-29 16:13:10 +0200 |
commit | 7259901b25974c00c8f0ce8acb91096858cfff53 (patch) | |
tree | d54ab081ff622462666558ced292c058cee76082 /dbaccess | |
parent | a226bf71316847bdbface79567bc7290d2cedc03 (diff) |
dbaccess: log exception messages in ORowSetCache
Change-Id: I1c76d4ce91d1f22d88106918ab139b17f6f017f0
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSetCache.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/dbaccess/source/core/api/RowSetCache.cxx b/dbaccess/source/core/api/RowSetCache.cxx index f4baf902a7e1..2daf08137172 100644 --- a/dbaccess/source/core/api/RowSetCache.cxx +++ b/dbaccess/source/core/api/RowSetCache.cxx @@ -132,7 +132,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch(const Exception& ex) { - (void)ex; + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << ex.Message); } try { @@ -142,7 +142,7 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } catch(const SQLException& e) { - (void)e; + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); } // check if all keys of the updateable table are fetched @@ -187,8 +187,9 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, m_aKeyColumns = pCursor->getJoinedKeyColumns(); return; } - catch(const Exception&) + catch (const Exception& e) { + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); } m_pCacheSet = NULL; m_xCacheSet.clear(); @@ -227,8 +228,9 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } } } - catch(Exception&) + catch (Exception const& e) { + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); } } @@ -255,8 +257,9 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, } } } - catch(const SQLException&) + catch (const SQLException& e) { + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); bNeedKeySet = true; } @@ -336,8 +339,9 @@ ORowSetCache::ORowSetCache(const Reference< XResultSet >& _xRs, if(bNoInsert) m_nPrivileges |= ~Privilege::INSERT; // remove the insert privilege } - catch(const SQLException&) + catch (const SQLException& e) { + SAL_WARN("dbaccess.core", "ORowSetCache: exception: " << e.Message); // we couldn't create a keyset here so we have to create a static cache if ( m_pCacheSet ) m_pCacheSet = NULL; |