diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-02 08:58:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-03 08:38:50 +0200 |
commit | 4450b2a16677431b1b9dfaa28d0b9af9e51ebdec (patch) | |
tree | 22aa13a8d13f690b8498ec4bdb502d198593fcab /connectivity | |
parent | d76281864b0e83812c0edf7490b1e8271e89fff5 (diff) |
pass area param to DBG_UNHANDLED_EXCEPTION
and update sallogareas plugin to enforce this
Change-Id: Id0782c8a1f619372e10d931aec3c6a4743a4c86a
Reviewed-on: https://gerrit.libreoffice.org/52249
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity')
18 files changed, 43 insertions, 43 deletions
diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx index 3ba09ee62430..4fa1c8c1deb7 100644 --- a/connectivity/source/commontools/DateConversion.cxx +++ b/connectivity/source/commontools/DateConversion.cxx @@ -409,7 +409,7 @@ double DBTypeConversion::getValue( const Reference< XColumn >& i_column, const D } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); return 0.0; } } @@ -479,7 +479,7 @@ OUString DBTypeConversion::getFormattedValue(const Reference<XColumn>& xVariant, } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } // get a value which represents the given date, relative to the null date of the formatter fValue -= toDays( rNullDate, aFormatterNullDate ); diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx index e40cde6c4bcd..afd77484c3ab 100644 --- a/connectivity/source/commontools/dbmetadata.cxx +++ b/connectivity/source/commontools/dbmetadata.cxx @@ -147,7 +147,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return false; } @@ -164,7 +164,7 @@ namespace dbtools { _cachedSetting.reset( (_metaData.xConnectionMetaData.get()->*_getter)() ); } - catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); } + catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } return *_cachedSetting; } @@ -231,7 +231,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bSupportsSubQueries; } @@ -253,7 +253,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bDoesSupportPrimaryKeys; } @@ -338,7 +338,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } try { @@ -350,7 +350,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bSupport; } @@ -389,7 +389,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return isSupported; } @@ -411,7 +411,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } #endif return doDisplay; @@ -428,7 +428,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bSupported; } diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 26fcb70bf8ec..603d003754f1 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -252,7 +252,7 @@ Reference< XDataSource > getDataSource( } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return xDS; @@ -1239,7 +1239,7 @@ Reference< XSingleSelectQueryComposer > getComposedRowSetStatement( const Refere } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return xComposer; diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index efff523d800d..1b9d480f8198 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -591,7 +591,7 @@ bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection, } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bValue; } @@ -648,7 +648,7 @@ bool isDataSourcePropertyEnabled(const Reference<XInterface>& _xProp, const OUSt } catch(SQLException&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return bEnabled; } @@ -672,7 +672,7 @@ Reference< XTablesSupplier> getDataDefinitionByURLAndConnection( } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return xTablesSup; } @@ -825,7 +825,7 @@ void collectColumnInformation(const Reference< XConnection>& _xConnection, } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } diff --git a/connectivity/source/commontools/filtermanager.cxx b/connectivity/source/commontools/filtermanager.cxx index cb534c01ad5b..152c4a4a2258 100644 --- a/connectivity/source/commontools/filtermanager.cxx +++ b/connectivity/source/commontools/filtermanager.cxx @@ -123,7 +123,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } @@ -148,7 +148,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } diff --git a/connectivity/source/commontools/formattedcolumnvalue.cxx b/connectivity/source/commontools/formattedcolumnvalue.cxx index bd582dbc82e4..3e3c5e316762 100644 --- a/connectivity/source/commontools/formattedcolumnvalue.cxx +++ b/connectivity/source/commontools/formattedcolumnvalue.cxx @@ -172,7 +172,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } @@ -197,7 +197,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } lcl_initColumnDataValue_nothrow( i_rData, xNumberFormatter, i_rColumn ); diff --git a/connectivity/source/commontools/parameters.cxx b/connectivity/source/commontools/parameters.cxx index 4fc69a8018d3..41d28a2bdf54 100644 --- a/connectivity/source/commontools/parameters.cxx +++ b/connectivity/source/commontools/parameters.cxx @@ -626,7 +626,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); SAL_WARN( "connectivity.commontools", "ParameterManager::fillLinkedParameters: master-detail parameter number " << sal_Int32( aPosition + 1 ) << " could not be filled!" ); } @@ -635,7 +635,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx index d644eb661e5a..38dbf9075333 100644 --- a/connectivity/source/commontools/paramwrapper.cxx +++ b/connectivity/source/commontools/paramwrapper.cxx @@ -167,7 +167,7 @@ namespace param } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } m_pInfoHelper.reset( new ::cppu::OPropertyArrayHelper( aProperties, false ) ); diff --git a/connectivity/source/commontools/statementcomposer.cxx b/connectivity/source/commontools/statementcomposer.cxx index 499e7f167e39..3f5714435689 100644 --- a/connectivity/source/commontools/statementcomposer.cxx +++ b/connectivity/source/commontools/statementcomposer.cxx @@ -93,7 +93,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } } _rData.xComposer.clear(); @@ -222,7 +222,7 @@ namespace dbtools } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.commontools"); } return _rData.xComposer.is(); diff --git a/connectivity/source/drivers/hsqldb/HConnection.cxx b/connectivity/source/drivers/hsqldb/HConnection.cxx index 1929c705fce0..cf4cafbe347c 100644 --- a/connectivity/source/drivers/hsqldb/HConnection.cxx +++ b/connectivity/source/drivers/hsqldb/HConnection.cxx @@ -151,7 +151,7 @@ namespace connectivity { namespace hsqldb } catch(const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } } @@ -160,7 +160,7 @@ namespace connectivity { namespace hsqldb } catch(const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } } @@ -255,7 +255,7 @@ namespace connectivity { namespace hsqldb { // that's a serious error in impl_getTableContainer_throw, or hasByName, however, we're only // allowed to throw an IllegalArgumentException ourself - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } if ( !bDoesExist ) @@ -300,7 +300,7 @@ namespace connectivity { namespace hsqldb } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } return bIsTextTable; @@ -335,7 +335,7 @@ namespace connectivity { namespace hsqldb } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } return xGraphic; } diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index 69261b2dd53f..9facdd3660b6 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -616,7 +616,7 @@ namespace connectivity } catch(Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } } } diff --git a/connectivity/source/drivers/hsqldb/HTable.cxx b/connectivity/source/drivers/hsqldb/HTable.cxx index 561d15893832..618b00930655 100644 --- a/connectivity/source/drivers/hsqldb/HTable.cxx +++ b/connectivity/source/drivers/hsqldb/HTable.cxx @@ -264,7 +264,7 @@ void OHSQLTable::alterColumnType(sal_Int32 nNewType,const OUString& _rColName, c } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } #else (void)_rColName; diff --git a/connectivity/source/drivers/hsqldb/HView.cxx b/connectivity/source/drivers/hsqldb/HView.cxx index 3a5fcb0cf394..10ec3ed7a2e4 100644 --- a/connectivity/source/drivers/hsqldb/HView.cxx +++ b/connectivity/source/drivers/hsqldb/HView.cxx @@ -132,7 +132,7 @@ namespace connectivity { namespace hsqldb { if ( bDropSucceeded ) xStatement->execute( sRestoreCommand ); - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } } @@ -186,7 +186,7 @@ namespace connectivity { namespace hsqldb } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } return sCommand; @@ -210,7 +210,7 @@ namespace connectivity { namespace hsqldb } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.hsqldb"); } return sCommand; diff --git a/connectivity/source/drivers/jdbc/JStatement.cxx b/connectivity/source/drivers/jdbc/JStatement.cxx index fbbb0c9a36c9..f6ad7f1d279b 100644 --- a/connectivity/source/drivers/jdbc/JStatement.cxx +++ b/connectivity/source/drivers/jdbc/JStatement.cxx @@ -650,7 +650,7 @@ sal_Bool java_sql_Statement_Base::convertFastPropertyValue( } catch(const css::uno::Exception&) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.jdbc"); } return false; } diff --git a/connectivity/source/drivers/mork/MResultSetMetaData.cxx b/connectivity/source/drivers/mork/MResultSetMetaData.cxx index 80b53817d1af..8b8e4c96e810 100644 --- a/connectivity/source/drivers/mork/MResultSetMetaData.cxx +++ b/connectivity/source/drivers/mork/MResultSetMetaData.cxx @@ -89,7 +89,7 @@ OUString SAL_CALL OResultSetMetaData::getColumnName( sal_Int32 column ) } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.mork"); } return sColumnName; } diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx index ca3a8ffd9759..e9fdf9f8ad09 100644 --- a/connectivity/source/manager/mdrivermanager.cxx +++ b/connectivity/source/manager/mdrivermanager.cxx @@ -205,7 +205,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.manager"); } return _rPrecedence.getLength(); diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 331616568dff..49fa68d587d3 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -318,7 +318,7 @@ void OSQLParseTreeIterator::impl_getQueryParameterColumns( const OSQLTable& _rQu } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.parse"); } // parse the sub query @@ -738,7 +738,7 @@ namespace } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.parse"); } } } @@ -1998,7 +1998,7 @@ Reference< XPropertySet > OSQLParseTreeIterator::findSelectColumn( const OUStrin } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.parse"); } } return nullptr; diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index e5349c7feded..eb4a02ca36e9 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -700,7 +700,7 @@ bool OSQLParseNode::impl_parseTableNameNodeToString_throw( OUStringBuffer& rStri } catch( const Exception& ) { - DBG_UNHANDLED_EXCEPTION(); + DBG_UNHANDLED_EXCEPTION("connectivity.parse"); } return false; } |