diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 15:37:44 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-01 16:43:05 +0100 |
commit | 968f633b247d06c958d0b5695ab1ed962509f795 (patch) | |
tree | 464d3fe9ca4e8e7f5a084636345dad4ead2a1d7f /connectivity | |
parent | b35f3dfb1afa78722a4cd8e69a625456a6dd01d6 (diff) |
coverity#706382 Uncaught exception
and
coverity#706377
coverity#706378
coverity#706382
Change-Id: I17f672e31867b1be77c16a8a6e121a8f67df7c90
Diffstat (limited to 'connectivity')
13 files changed, 164 insertions, 149 deletions
diff --git a/connectivity/source/commontools/dbexception.cxx b/connectivity/source/commontools/dbexception.cxx index 33ea7a8eac72..b4990e8a93f7 100644 --- a/connectivity/source/commontools/dbexception.cxx +++ b/connectivity/source/commontools/dbexception.cxx @@ -384,8 +384,9 @@ void throwInvalidIndexException(const ::com::sun::star::uno::Reference< ::com::s ); } -void throwFunctionNotSupportedException( const OUString& _rFunctionName, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext, - const ::com::sun::star::uno::Any& _rNextException ) throw ( ::com::sun::star::sdbc::SQLException ) +void throwFunctionNotSupportedSQLException(const OUString& _rFunctionName, + const css::uno::Reference<css::uno::XInterface>& _rxContext, + const css::uno::Any& _rNextException) throw (css::sdbc::SQLException) { ::connectivity::SharedResources aResources; const OUString sError( aResources.getResourceStringWithSubstitution( @@ -401,6 +402,20 @@ void throwFunctionNotSupportedException( const OUString& _rFunctionName, const : ); } +void throwFunctionNotSupportedRuntimeException(const OUString& _rFunctionName, + const css::uno::Reference<css::uno::XInterface>& _rxContext) throw (css::uno::RuntimeException) +{ + ::connectivity::SharedResources aResources; + const OUString sError( aResources.getResourceStringWithSubstitution( + STR_UNSUPPORTED_FUNCTION, + "$functionname$", _rFunctionName + ) ); + throw RuntimeException( + sError, + _rxContext + ); +} + void throwGenericSQLException(const OUString& _rMsg, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxSource) throw (::com::sun::star::sdbc::SQLException) { diff --git a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx index 30fdfdf9dbfd..a7e72c84c802 100644 --- a/connectivity/source/drivers/evoab2/NPreparedStatement.cxx +++ b/connectivity/source/drivers/evoab2/NPreparedStatement.cxx @@ -147,7 +147,7 @@ sal_Int32 SAL_CALL OEvoabPreparedStatement::executeUpdate( ) throw(SQLException void SAL_CALL OEvoabPreparedStatement::setString( sal_Int32 /*parameterIndex*/, const OUString& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setString", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setString", *this ); } @@ -171,98 +171,98 @@ Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::executeQuery( ) throw void SAL_CALL OEvoabPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setBoolean", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBoolean", *this ); } void SAL_CALL OEvoabPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setByte", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setByte", *this ); } void SAL_CALL OEvoabPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setDate", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setDate", *this ); } void SAL_CALL OEvoabPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const Time& /*aVal*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setTime", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setTime", *this ); } void SAL_CALL OEvoabPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setTimestamp", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setTimestamp", *this ); } void SAL_CALL OEvoabPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setDouble", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setDouble", *this ); } void SAL_CALL OEvoabPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setFloat", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setFloat", *this ); } void SAL_CALL OEvoabPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setInt", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setInt", *this ); } void SAL_CALL OEvoabPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setLong", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setLong", *this ); } void SAL_CALL OEvoabPreparedStatement::setNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setNull", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setNull", *this ); } void SAL_CALL OEvoabPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setClob", *this ); } void SAL_CALL OEvoabPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBlob", *this ); } void SAL_CALL OEvoabPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setArray", *this ); } void SAL_CALL OEvoabPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setRef", *this ); } void SAL_CALL OEvoabPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectWithInfo", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setObjectWithInfo", *this ); } void SAL_CALL OEvoabPreparedStatement::setObjectNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/, const OUString& /*typeName*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setObjectNull", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setObjectNull", *this ); } @@ -281,26 +281,26 @@ void SAL_CALL OEvoabPreparedStatement::setObject( sal_Int32 parameterIndex, cons void SAL_CALL OEvoabPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setShort", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setShort", *this ); } void SAL_CALL OEvoabPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setBytes", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBytes", *this ); } void SAL_CALL OEvoabPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setCharacterStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setCharacterStream", *this ); } void SAL_CALL OEvoabPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBinaryStream", *this ); } diff --git a/connectivity/source/drivers/evoab2/NResultSet.cxx b/connectivity/source/drivers/evoab2/NResultSet.cxx index f0731e032ba6..81f3bb85d637 100644 --- a/connectivity/source/drivers/evoab2/NResultSet.cxx +++ b/connectivity/source/drivers/evoab2/NResultSet.cxx @@ -781,103 +781,103 @@ sal_Bool SAL_CALL OEvoabResultSet::getBoolean( sal_Int32 nColumnNum ) throw(SQLE sal_Int64 SAL_CALL OEvoabResultSet::getLong( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getLong", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getLong", *this ); return sal_Int64(); } Reference< XArray > SAL_CALL OEvoabResultSet::getArray( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this ); return NULL; } Reference< XClob > SAL_CALL OEvoabResultSet::getClob( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this ); return NULL; } Reference< XBlob > SAL_CALL OEvoabResultSet::getBlob( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this ); return NULL; } Reference< XRef > SAL_CALL OEvoabResultSet::getRef( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this ); return NULL; } Any SAL_CALL OEvoabResultSet::getObject( sal_Int32 /*nColumnNum*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getObject", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getObject", *this ); return Any(); } sal_Int16 SAL_CALL OEvoabResultSet::getShort( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getShort", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getShort", *this ); return 0; } ::com::sun::star::util::Time SAL_CALL OEvoabResultSet::getTime( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getTime", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getTime", *this ); return ::com::sun::star::util::Time(); } util::DateTime SAL_CALL OEvoabResultSet::getTimestamp( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getTimestamp", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getTimestamp", *this ); return ::com::sun::star::util::DateTime(); } Reference< XInputStream > SAL_CALL OEvoabResultSet::getBinaryStream( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } Reference< XInputStream > SAL_CALL OEvoabResultSet::getCharacterStream( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getCharacterStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getCharacterStream", *this ); return NULL; } sal_Int8 SAL_CALL OEvoabResultSet::getByte( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getByte", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getByte", *this ); return 0; } Sequence< sal_Int8 > SAL_CALL OEvoabResultSet::getBytes( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBytes", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBytes", *this ); return Sequence< sal_Int8 >(); } ::com::sun::star::util::Date SAL_CALL OEvoabResultSet::getDate( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getDate", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getDate", *this ); return ::com::sun::star::util::Date(); } double SAL_CALL OEvoabResultSet::getDouble( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getDouble", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getDouble", *this ); return 0; } float SAL_CALL OEvoabResultSet::getFloat( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getFloat", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getFloat", *this ); return 0; } sal_Int32 SAL_CALL OEvoabResultSet::getInt( sal_Int32 /*nColumnNum*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getInt", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getInt", *this ); return 0; } // XRow Interface Ends diff --git a/connectivity/source/drivers/firebird/Connection.cxx b/connectivity/source/drivers/firebird/Connection.cxx index 2d846d8c9959..14e5a5a104f7 100644 --- a/connectivity/source/drivers/firebird/Connection.cxx +++ b/connectivity/source/drivers/firebird/Connection.cxx @@ -575,13 +575,13 @@ sal_Bool SAL_CALL Connection::isReadOnly() throw(SQLException, RuntimeException, void SAL_CALL Connection::setCatalog(const OUString& /*catalog*/) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("setCatalog", *this); + ::dbtools::throwFunctionNotSupportedSQLException("setCatalog", *this); } OUString SAL_CALL Connection::getCatalog() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("getCatalog", *this); + ::dbtools::throwFunctionNotSupportedSQLException("getCatalog", *this); return OUString(); } diff --git a/connectivity/source/drivers/firebird/PreparedStatement.cxx b/connectivity/source/drivers/firebird/PreparedStatement.cxx index 3c40ecd237a1..bd8fdaa27b14 100644 --- a/connectivity/source/drivers/firebird/PreparedStatement.cxx +++ b/connectivity/source/drivers/firebird/PreparedStatement.cxx @@ -324,7 +324,7 @@ void SAL_CALL OPreparedStatement::setBoolean(sal_Int32 /*nIndex*/, sal_Bool /*bV throw(SQLException, RuntimeException, std::exception) { // FIREBIRD3: will need to be implemented. - ::dbtools::throwFunctionNotSupportedException("XParameters::setBoolean", *this); + ::dbtools::throwFunctionNotSupportedSQLException("XParameters::setBoolean", *this); } template <typename T> @@ -354,7 +354,7 @@ void OPreparedStatement::setValue(sal_Int32 nIndex, T& nValue, ISC_SHORT nType) void SAL_CALL OPreparedStatement::setByte(sal_Int32 /*nIndex*/, sal_Int8 /*nValue*/) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("XParameters::setByte", *this); + ::dbtools::throwFunctionNotSupportedSQLException("XParameters::setByte", *this); } void SAL_CALL OPreparedStatement::setShort(sal_Int32 nIndex, sal_Int16 nValue) diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx index 4f8cc5d4067f..6d702b2b3cb2 100644 --- a/connectivity/source/drivers/firebird/ResultSet.cxx +++ b/connectivity/source/drivers/firebird/ResultSet.cxx @@ -153,14 +153,14 @@ sal_Bool SAL_CALL OResultSet::next() throw(SQLException, RuntimeException, std:: sal_Bool SAL_CALL OResultSet::previous() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("previous not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("previous not supported in firebird", *this); return sal_False; } sal_Bool SAL_CALL OResultSet::isLast() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("isLast not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("isLast not supported in firebird", *this); return sal_False; } @@ -195,7 +195,7 @@ void SAL_CALL OResultSet::beforeFirst() throw(SQLException, RuntimeException, st checkDisposed(OResultSet_BASE::rBHelper.bDisposed); if (m_currentRow != 0) - ::dbtools::throwFunctionNotSupportedException("beforeFirst not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("beforeFirst not supported in firebird", *this); } @@ -205,7 +205,7 @@ void SAL_CALL OResultSet::afterLast() throw(SQLException, RuntimeException, std: checkDisposed(OResultSet_BASE::rBHelper.bDisposed); if (!m_bIsAfterLastRow) - ::dbtools::throwFunctionNotSupportedException("afterLast not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("afterLast not supported in firebird", *this); } @@ -224,7 +224,7 @@ sal_Bool SAL_CALL OResultSet::first() throw(SQLException, RuntimeException, std: } else { - ::dbtools::throwFunctionNotSupportedException("first not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("first not supported in firebird", *this); return sal_False; } @@ -234,7 +234,7 @@ sal_Bool SAL_CALL OResultSet::last() throw(SQLException, RuntimeException, std:: { // We need to iterate past the last row to know when we've passed the last // row, hence we can't actually move to last. - ::dbtools::throwFunctionNotSupportedException("last not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("last not supported in firebird", *this); return sal_False; } @@ -251,7 +251,7 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow) throw(SQLException, Runti } else { - ::dbtools::throwFunctionNotSupportedException("absolute not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("absolute not supported in firebird", *this); return sal_False; } @@ -273,7 +273,7 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row) throw(SQLException, Runtim } else { - ::dbtools::throwFunctionNotSupportedException("relative not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("relative not supported in firebird", *this); return sal_False; } @@ -723,27 +723,27 @@ uno::Reference< XInterface > SAL_CALL OResultSet::getStatement() //----- XResultSet: unsupported change detection methods --------------------- sal_Bool SAL_CALL OResultSet::rowDeleted() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("rowDeleted not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("rowDeleted not supported in firebird", *this); return sal_False; } sal_Bool SAL_CALL OResultSet::rowInserted() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("rowInserted not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("rowInserted not supported in firebird", *this); return sal_False; } sal_Bool SAL_CALL OResultSet::rowUpdated() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("rowUpdated not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("rowUpdated not supported in firebird", *this); return sal_False; } void SAL_CALL OResultSet::refreshRow() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("refreshRow not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("refreshRow not supported in firebird", *this); } @@ -759,13 +759,13 @@ void SAL_CALL OResultSet::cancel( ) throw(RuntimeException, std::exception) #if 0 void SAL_CALL OResultSet::clearWarnings() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("clearWarnings not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("clearWarnings not supported in firebird", *this); } Any SAL_CALL OResultSet::getWarnings() throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException("getWarnings not supported in firebird", + ::dbtools::throwFunctionNotSupportedSQLException("getWarnings not supported in firebird", *this); return Any(); } diff --git a/connectivity/source/drivers/kab/KPreparedStatement.cxx b/connectivity/source/drivers/kab/KPreparedStatement.cxx index 53bd709615ff..e97298e265b8 100644 --- a/connectivity/source/drivers/kab/KPreparedStatement.cxx +++ b/connectivity/source/drivers/kab/KPreparedStatement.cxx @@ -192,7 +192,7 @@ void SAL_CALL KabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const OU -::dbtools::throwFunctionNotSupportedException("setObjectNull", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setObjectNull", NULL); } void SAL_CALL KabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException, std::exception) @@ -200,7 +200,7 @@ void SAL_CALL KabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLExc -::dbtools::throwFunctionNotSupportedException("setBoolean", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBoolean", NULL); } void SAL_CALL KabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException, std::exception) @@ -208,7 +208,7 @@ void SAL_CALL KabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLExcept -::dbtools::throwFunctionNotSupportedException("setByte", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setByte", NULL); } void SAL_CALL KabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException, std::exception) @@ -216,7 +216,7 @@ void SAL_CALL KabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLExce -::dbtools::throwFunctionNotSupportedException("setShort", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setShort", NULL); } void SAL_CALL KabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException, std::exception) @@ -224,7 +224,7 @@ void SAL_CALL KabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLExcept -::dbtools::throwFunctionNotSupportedException("setInt", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setInt", NULL); } void SAL_CALL KabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException, std::exception) @@ -232,7 +232,7 @@ void SAL_CALL KabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLExcep -::dbtools::throwFunctionNotSupportedException("", NULL); +::dbtools::throwFunctionNotSupportedSQLException("", NULL); } void SAL_CALL KabPreparedStatement::setFloat(sal_Int32, float) throw(SQLException, RuntimeException, std::exception) @@ -240,7 +240,7 @@ void SAL_CALL KabPreparedStatement::setFloat(sal_Int32, float) throw(SQLExceptio -::dbtools::throwFunctionNotSupportedException("setFloat", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setFloat", NULL); } void SAL_CALL KabPreparedStatement::setDouble(sal_Int32, double) throw(SQLException, RuntimeException, std::exception) @@ -248,7 +248,7 @@ void SAL_CALL KabPreparedStatement::setDouble(sal_Int32, double) throw(SQLExcept -::dbtools::throwFunctionNotSupportedException("setDouble", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setDouble", NULL); } void SAL_CALL KabPreparedStatement::setString(sal_Int32 parameterIndex, const OUString &x) throw(SQLException, RuntimeException, std::exception) @@ -266,7 +266,7 @@ void SAL_CALL KabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_Int8 -::dbtools::throwFunctionNotSupportedException("setBytes", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBytes", NULL); } void SAL_CALL KabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLException, RuntimeException, std::exception) @@ -274,7 +274,7 @@ void SAL_CALL KabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLExc -::dbtools::throwFunctionNotSupportedException("setDate", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setDate", NULL); } void SAL_CALL KabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLException, RuntimeException, std::exception) @@ -282,7 +282,7 @@ void SAL_CALL KabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLExc -::dbtools::throwFunctionNotSupportedException("setTime", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setTime", NULL); } void SAL_CALL KabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException, std::exception) @@ -290,7 +290,7 @@ void SAL_CALL KabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) thr -::dbtools::throwFunctionNotSupportedException("setTimestamp", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setTimestamp", NULL); } void SAL_CALL KabPreparedStatement::setBinaryStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException, std::exception) @@ -298,7 +298,7 @@ void SAL_CALL KabPreparedStatement::setBinaryStream(sal_Int32, const Reference< -::dbtools::throwFunctionNotSupportedException("setBinaryStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBinaryStream", NULL); } void SAL_CALL KabPreparedStatement::setCharacterStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException, std::exception) @@ -306,7 +306,7 @@ void SAL_CALL KabPreparedStatement::setCharacterStream(sal_Int32, const Referenc -::dbtools::throwFunctionNotSupportedException("setCharacterStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setCharacterStream", NULL); } void SAL_CALL KabPreparedStatement::setObject(sal_Int32 parameterIndex, const Any& x) throw(SQLException, RuntimeException, std::exception) @@ -322,7 +322,7 @@ void SAL_CALL KabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, sal -::dbtools::throwFunctionNotSupportedException("setObjectWithInfo", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setObjectWithInfo", NULL); } void SAL_CALL KabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) throw(SQLException, RuntimeException, std::exception) @@ -330,7 +330,7 @@ void SAL_CALL KabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) -::dbtools::throwFunctionNotSupportedException("setRef", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setRef", NULL); } void SAL_CALL KabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&) throw(SQLException, RuntimeException, std::exception) @@ -338,7 +338,7 @@ void SAL_CALL KabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >& -::dbtools::throwFunctionNotSupportedException("setBlob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBlob", NULL); } void SAL_CALL KabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&) throw(SQLException, RuntimeException, std::exception) @@ -346,7 +346,7 @@ void SAL_CALL KabPreparedStatement::setClob(sal_Int32, const Reference< XClob >& -::dbtools::throwFunctionNotSupportedException("setClob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setClob", NULL); } void SAL_CALL KabPreparedStatement::setArray(sal_Int32, const Reference< XArray >&) throw(SQLException, RuntimeException, std::exception) @@ -354,12 +354,12 @@ void SAL_CALL KabPreparedStatement::setArray(sal_Int32, const Reference< XArray -::dbtools::throwFunctionNotSupportedException("setArray", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setArray", NULL); } void SAL_CALL KabPreparedStatement::clearParameters() throw(SQLException, RuntimeException, std::exception) { -::dbtools::throwFunctionNotSupportedException("clearParameters", NULL); +::dbtools::throwFunctionNotSupportedSQLException("clearParameters", NULL); } void KabPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception, std::exception) diff --git a/connectivity/source/drivers/kab/KResultSet.cxx b/connectivity/source/drivers/kab/KResultSet.cxx index ad7f98cb93e2..08ca702dd8ca 100644 --- a/connectivity/source/drivers/kab/KResultSet.cxx +++ b/connectivity/source/drivers/kab/KResultSet.cxx @@ -211,7 +211,7 @@ sal_Bool SAL_CALL KabResultSet::getBoolean(sal_Int32) throw(SQLException, Runtim ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBoolean", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBoolean", NULL); return sal_False; } @@ -221,7 +221,7 @@ sal_Int8 SAL_CALL KabResultSet::getByte(sal_Int32) throw(SQLException, RuntimeEx ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getByte", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getByte", NULL); sal_Int8 nRet = 0; return nRet; @@ -232,7 +232,7 @@ sal_Int16 SAL_CALL KabResultSet::getShort(sal_Int32) throw(SQLException, Runtime ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getShort", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getShort", NULL); sal_Int16 nRet = 0; return nRet; @@ -243,7 +243,7 @@ sal_Int32 SAL_CALL KabResultSet::getInt(sal_Int32) throw(SQLException, RuntimeEx ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getInt", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getInt", NULL); sal_Int32 nRet = 0; return nRet; @@ -254,7 +254,7 @@ sal_Int64 SAL_CALL KabResultSet::getLong(sal_Int32) throw(SQLException, RuntimeE ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getLong", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getLong", NULL); return sal_Int64(); } @@ -264,7 +264,7 @@ float SAL_CALL KabResultSet::getFloat(sal_Int32) throw(SQLException, RuntimeExce ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getFloat", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getFloat", NULL); float nVal(0); return nVal; @@ -275,7 +275,7 @@ double SAL_CALL KabResultSet::getDouble(sal_Int32) throw(SQLException, RuntimeEx ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getDouble", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getDouble", NULL); double nRet = 0; return nRet; @@ -286,7 +286,7 @@ Sequence< sal_Int8 > SAL_CALL KabResultSet::getBytes(sal_Int32) throw(SQLExcepti ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("", NULL); +::dbtools::throwFunctionNotSupportedSQLException("", NULL); return Sequence< sal_Int8 >(); } @@ -296,7 +296,7 @@ cssu::Date SAL_CALL KabResultSet::getDate(sal_Int32) throw(SQLException, Runtime ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getDate", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getDate", NULL); cssu::Date aRet; return aRet; @@ -307,7 +307,7 @@ cssu::Time SAL_CALL KabResultSet::getTime(sal_Int32) throw(SQLException, Runtime ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getTime", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getTime", NULL); cssu::Time nRet; return nRet; @@ -357,7 +357,7 @@ Reference< XInputStream > SAL_CALL KabResultSet::getBinaryStream(sal_Int32) thro ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBinaryStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBinaryStream", NULL); return NULL; } @@ -367,7 +367,7 @@ Reference< XInputStream > SAL_CALL KabResultSet::getCharacterStream(sal_Int32) t ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getCharacterStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getCharacterStream", NULL); return NULL; } @@ -377,7 +377,7 @@ Any SAL_CALL KabResultSet::getObject(sal_Int32, const Reference< ::com::sun::sta ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getObject", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getObject", NULL); return Any(); } @@ -387,7 +387,7 @@ Reference< XRef > SAL_CALL KabResultSet::getRef(sal_Int32) throw(SQLException, R ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getRef", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getRef", NULL); return NULL; } @@ -397,7 +397,7 @@ Reference< XBlob > SAL_CALL KabResultSet::getBlob(sal_Int32) throw(SQLException, ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBlob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBlob", NULL); return NULL; } @@ -407,7 +407,7 @@ Reference< XClob > SAL_CALL KabResultSet::getClob(sal_Int32) throw(SQLException, ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getClob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getClob", NULL); return NULL; } @@ -417,7 +417,7 @@ Reference< XArray > SAL_CALL KabResultSet::getArray(sal_Int32) throw(SQLExceptio ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(KabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getArray", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getArray", NULL); return NULL; } diff --git a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx index 7b7ac3bdbd39..9ef8cc049b9a 100644 --- a/connectivity/source/drivers/macab/MacabPreparedStatement.cxx +++ b/connectivity/source/drivers/macab/MacabPreparedStatement.cxx @@ -205,7 +205,7 @@ void SAL_CALL MacabPreparedStatement::setObjectNull(sal_Int32, sal_Int32, const -::dbtools::throwFunctionNotSupportedException("setObjectNull", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setObjectNull", NULL); } void SAL_CALL MacabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLException, RuntimeException) @@ -213,7 +213,7 @@ void SAL_CALL MacabPreparedStatement::setBoolean(sal_Int32, sal_Bool) throw(SQLE -::dbtools::throwFunctionNotSupportedException("setBoolean", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBoolean", NULL); } void SAL_CALL MacabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLException, RuntimeException) @@ -221,7 +221,7 @@ void SAL_CALL MacabPreparedStatement::setByte(sal_Int32, sal_Int8) throw(SQLExce -::dbtools::throwFunctionNotSupportedException("setByte", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setByte", NULL); } void SAL_CALL MacabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLException, RuntimeException) @@ -229,7 +229,7 @@ void SAL_CALL MacabPreparedStatement::setShort(sal_Int32, sal_Int16) throw(SQLEx -::dbtools::throwFunctionNotSupportedException("setShort", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setShort", NULL); } void SAL_CALL MacabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLException, RuntimeException) @@ -237,7 +237,7 @@ void SAL_CALL MacabPreparedStatement::setInt(sal_Int32, sal_Int32) throw(SQLExce -::dbtools::throwFunctionNotSupportedException("setInt", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setInt", NULL); } void SAL_CALL MacabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLException, RuntimeException) @@ -245,7 +245,7 @@ void SAL_CALL MacabPreparedStatement::setLong(sal_Int32, sal_Int64) throw(SQLExc -::dbtools::throwFunctionNotSupportedException("setLong", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setLong", NULL); } void SAL_CALL MacabPreparedStatement::setFloat(sal_Int32, float) throw(SQLException, RuntimeException) @@ -253,7 +253,7 @@ void SAL_CALL MacabPreparedStatement::setFloat(sal_Int32, float) throw(SQLExcept -::dbtools::throwFunctionNotSupportedException("setFloat", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setFloat", NULL); } void SAL_CALL MacabPreparedStatement::setDouble(sal_Int32, double) throw(SQLException, RuntimeException) @@ -261,7 +261,7 @@ void SAL_CALL MacabPreparedStatement::setDouble(sal_Int32, double) throw(SQLExce -::dbtools::throwFunctionNotSupportedException("setDouble", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setDouble", NULL); } void SAL_CALL MacabPreparedStatement::setString(sal_Int32 parameterIndex, const OUString &x) throw(SQLException, RuntimeException) @@ -279,7 +279,7 @@ void SAL_CALL MacabPreparedStatement::setBytes(sal_Int32, const Sequence< sal_In -::dbtools::throwFunctionNotSupportedException("setBytes", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBytes", NULL); } void SAL_CALL MacabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLException, RuntimeException) @@ -287,7 +287,7 @@ void SAL_CALL MacabPreparedStatement::setDate(sal_Int32, const Date&) throw(SQLE -::dbtools::throwFunctionNotSupportedException("setDate", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setDate", NULL); } void SAL_CALL MacabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLException, RuntimeException) @@ -295,7 +295,7 @@ void SAL_CALL MacabPreparedStatement::setTime(sal_Int32, const Time&) throw(SQLE -::dbtools::throwFunctionNotSupportedException("setTime", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setTime", NULL); } void SAL_CALL MacabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) throw(SQLException, RuntimeException) @@ -303,7 +303,7 @@ void SAL_CALL MacabPreparedStatement::setTimestamp(sal_Int32, const DateTime&) t -::dbtools::throwFunctionNotSupportedException("setTimestamp", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setTimestamp", NULL); } void SAL_CALL MacabPreparedStatement::setBinaryStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException) @@ -311,7 +311,7 @@ void SAL_CALL MacabPreparedStatement::setBinaryStream(sal_Int32, const Reference -::dbtools::throwFunctionNotSupportedException("setBinaryStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBinaryStream", NULL); } void SAL_CALL MacabPreparedStatement::setCharacterStream(sal_Int32, const Reference< ::com::sun::star::io::XInputStream >&, sal_Int32) throw(SQLException, RuntimeException) @@ -319,7 +319,7 @@ void SAL_CALL MacabPreparedStatement::setCharacterStream(sal_Int32, const Refere -::dbtools::throwFunctionNotSupportedException("setCharacterStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setCharacterStream", NULL); } void SAL_CALL MacabPreparedStatement::setObject(sal_Int32 parameterIndex, const Any& x) throw(SQLException, RuntimeException) @@ -339,7 +339,7 @@ void SAL_CALL MacabPreparedStatement::setObjectWithInfo(sal_Int32, const Any&, s -::dbtools::throwFunctionNotSupportedException("setObjectWithInfo", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setObjectWithInfo", NULL); } void SAL_CALL MacabPreparedStatement::setRef(sal_Int32, const Reference< XRef >&) throw(SQLException, RuntimeException) @@ -347,7 +347,7 @@ void SAL_CALL MacabPreparedStatement::setRef(sal_Int32, const Reference< XRef >& -::dbtools::throwFunctionNotSupportedException("setRef", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setRef", NULL); } void SAL_CALL MacabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob >&) throw(SQLException, RuntimeException) @@ -355,7 +355,7 @@ void SAL_CALL MacabPreparedStatement::setBlob(sal_Int32, const Reference< XBlob -::dbtools::throwFunctionNotSupportedException("setBlob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setBlob", NULL); } void SAL_CALL MacabPreparedStatement::setClob(sal_Int32, const Reference< XClob >&) throw(SQLException, RuntimeException) @@ -363,7 +363,7 @@ void SAL_CALL MacabPreparedStatement::setClob(sal_Int32, const Reference< XClob -::dbtools::throwFunctionNotSupportedException("setClob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setClob", NULL); } void SAL_CALL MacabPreparedStatement::setArray(sal_Int32, const Reference< XArray >&) throw(SQLException, RuntimeException) @@ -371,12 +371,12 @@ void SAL_CALL MacabPreparedStatement::setArray(sal_Int32, const Reference< XArra -::dbtools::throwFunctionNotSupportedException("setArray", NULL); +::dbtools::throwFunctionNotSupportedSQLException("setArray", NULL); } void SAL_CALL MacabPreparedStatement::clearParameters() throw(SQLException, RuntimeException) { -::dbtools::throwFunctionNotSupportedException("clearParameters", NULL); +::dbtools::throwFunctionNotSupportedSQLException("clearParameters", NULL); } void MacabPreparedStatement::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception) diff --git a/connectivity/source/drivers/macab/MacabResultSet.cxx b/connectivity/source/drivers/macab/MacabResultSet.cxx index 0e3aee4c47cc..be90b1241d10 100644 --- a/connectivity/source/drivers/macab/MacabResultSet.cxx +++ b/connectivity/source/drivers/macab/MacabResultSet.cxx @@ -229,7 +229,7 @@ sal_Bool SAL_CALL MacabResultSet::getBoolean(sal_Int32) throw(SQLException, Runt ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBoolean", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBoolean", NULL); return sal_False; } @@ -239,7 +239,7 @@ sal_Int8 SAL_CALL MacabResultSet::getByte(sal_Int32) throw(SQLException, Runtime ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getByte", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getByte", NULL); sal_Int8 nRet = 0; return nRet; @@ -250,7 +250,7 @@ sal_Int16 SAL_CALL MacabResultSet::getShort(sal_Int32) throw(SQLException, Runti ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getShort", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getShort", NULL); sal_Int16 nRet = 0; return nRet; @@ -377,7 +377,7 @@ Sequence< sal_Int8 > SAL_CALL MacabResultSet::getBytes(sal_Int32) throw(SQLExcep ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBytes", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBytes", NULL); return Sequence< sal_Int8 >(); } @@ -387,7 +387,7 @@ Date SAL_CALL MacabResultSet::getDate(sal_Int32) throw(SQLException, RuntimeExce ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getDate", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getDate", NULL); Date aRet; return aRet; @@ -398,7 +398,7 @@ Time SAL_CALL MacabResultSet::getTime(sal_Int32) throw(SQLException, RuntimeExce ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getTime", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getTime", NULL); Time nRet; return nRet; @@ -436,7 +436,7 @@ Reference< XInputStream > SAL_CALL MacabResultSet::getBinaryStream(sal_Int32) th ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBinaryStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBinaryStream", NULL); return NULL; } @@ -446,7 +446,7 @@ Reference< XInputStream > SAL_CALL MacabResultSet::getCharacterStream(sal_Int32) ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getCharacterStream", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getCharacterStream", NULL); return NULL; } @@ -456,7 +456,7 @@ Any SAL_CALL MacabResultSet::getObject(sal_Int32, const Reference< ::com::sun::s ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getObject", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getObject", NULL); return Any(); } @@ -466,7 +466,7 @@ Reference< XRef > SAL_CALL MacabResultSet::getRef(sal_Int32) throw(SQLException, ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getRef", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getRef", NULL); return NULL; } @@ -476,7 +476,7 @@ Reference< XBlob > SAL_CALL MacabResultSet::getBlob(sal_Int32) throw(SQLExceptio ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getBlob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getBlob", NULL); return NULL; } @@ -486,7 +486,7 @@ Reference< XClob > SAL_CALL MacabResultSet::getClob(sal_Int32) throw(SQLExceptio ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getClob", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getClob", NULL); return NULL; } @@ -496,7 +496,7 @@ Reference< XArray > SAL_CALL MacabResultSet::getArray(sal_Int32) throw(SQLExcept ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(MacabResultSet_BASE::rBHelper.bDisposed); -::dbtools::throwFunctionNotSupportedException("getArray", NULL); +::dbtools::throwFunctionNotSupportedSQLException("getArray", NULL); return NULL; } diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx index 7a2d3dc947d4..ecc8bdaa9168 100644 --- a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx +++ b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx @@ -195,13 +195,13 @@ template < typename T, SQLSMALLINT sqlTypeId > T ODatabaseMetaDataResultSet::get Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getBinaryStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } Reference< ::com::sun::star::io::XInputStream > SAL_CALL ODatabaseMetaDataResultSet::getCharacterStream( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getCharacterStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getCharacterStream", *this ); return NULL; } @@ -353,33 +353,33 @@ Reference< XResultSetMetaData > SAL_CALL ODatabaseMetaDataResultSet::getMetaData Reference< XArray > SAL_CALL ODatabaseMetaDataResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this ); return NULL; } Reference< XClob > SAL_CALL ODatabaseMetaDataResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this ); return NULL; } Reference< XBlob > SAL_CALL ODatabaseMetaDataResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this ); return NULL; } Reference< XRef > SAL_CALL ODatabaseMetaDataResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this ); return NULL; } Any SAL_CALL ODatabaseMetaDataResultSet::getObject( sal_Int32 /*columnIndex*/, const Reference< ::com::sun::star::container::XNameAccess >& /*typeMap*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getObject", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getObject", *this ); return Any(); } diff --git a/connectivity/source/drivers/odbc/OPreparedStatement.cxx b/connectivity/source/drivers/odbc/OPreparedStatement.cxx index ec2c17230921..ba402bb3c6ec 100644 --- a/connectivity/source/drivers/odbc/OPreparedStatement.cxx +++ b/connectivity/source/drivers/odbc/OPreparedStatement.cxx @@ -570,13 +570,13 @@ void SAL_CALL OPreparedStatement::setBlob( sal_Int32 parameterIndex, const Refer void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setArray", *this ); } void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XParameters::setRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setRef", *this ); } void SAL_CALL OPreparedStatement::setObjectWithInfo( sal_Int32 parameterIndex, const Any& x, sal_Int32 sqlType, sal_Int32 scale ) throw(SQLException, RuntimeException, std::exception) @@ -674,7 +674,7 @@ void SAL_CALL OPreparedStatement::clearParameters( ) throw(SQLException, Runtim void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::clearBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::clearBatch", *this ); // clearParameters( ); // m_aBatchList.erase(); } @@ -682,13 +682,13 @@ void SAL_CALL OPreparedStatement::clearBatch( ) throw(SQLException, RuntimeExce void SAL_CALL OPreparedStatement::addBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::addBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::addBatch", *this ); } Sequence< sal_Int32 > SAL_CALL OPreparedStatement::executeBatch( ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XPreparedBatchExecution::executeBatch", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XPreparedBatchExecution::executeBatch", *this ); // not reached, but keep -Werror happy return Sequence< sal_Int32 > (); } diff --git a/connectivity/source/drivers/odbc/OResultSet.cxx b/connectivity/source/drivers/odbc/OResultSet.cxx index fd70b4a7b0e4..5cda9222694f 100644 --- a/connectivity/source/drivers/odbc/OResultSet.cxx +++ b/connectivity/source/drivers/odbc/OResultSet.cxx @@ -427,7 +427,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getBinaryStream( sal_Int32 /*colu ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } @@ -437,7 +437,7 @@ Reference< XInputStream > SAL_CALL OResultSet::getCharacterStream( sal_Int32 /*c ::osl::MutexGuard aGuard( m_aMutex ); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - ::dbtools::throwFunctionNotSupportedException( "XRow::getBinaryStream", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this ); return NULL; } @@ -593,7 +593,7 @@ Reference< XResultSetMetaData > SAL_CALL OResultSet::getMetaData( ) throw(SQLEx Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getArray", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this ); return NULL; } @@ -601,20 +601,20 @@ Reference< XArray > SAL_CALL OResultSet::getArray( sal_Int32 /*columnIndex*/ ) t Reference< XClob > SAL_CALL OResultSet::getClob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getClob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this ); return NULL; } Reference< XBlob > SAL_CALL OResultSet::getBlob( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getBlob", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this ); return NULL; } Reference< XRef > SAL_CALL OResultSet::getRef( sal_Int32 /*columnIndex*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRow::getRef", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this ); return NULL; } @@ -1061,7 +1061,7 @@ void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x ) throw( void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ ) throw(SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRowUpdate::updateLong", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRowUpdate::updateLong", *this ); } void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x ) throw(SQLException, RuntimeException, std::exception) @@ -1250,7 +1250,7 @@ sal_Bool SAL_CALL OResultSet::hasOrderedBookmarks( ) throw( SQLException, Runt sal_Int32 SAL_CALL OResultSet::hashBookmark( const Any& /*bookmark*/ ) throw( SQLException, RuntimeException, std::exception) { - ::dbtools::throwFunctionNotSupportedException( "XRowLocate::hashBookmark", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "XRowLocate::hashBookmark", *this ); return 0; } @@ -1386,7 +1386,7 @@ bool OResultSet::isBookmarkable() const void OResultSet::setFetchDirection(sal_Int32 _par0) { - ::dbtools::throwFunctionNotSupportedException( "setFetchDirection", *this ); + ::dbtools::throwFunctionNotSupportedSQLException( "setFetchDirection", *this ); OSL_ENSURE(_par0>0,"Illegal fetch direction!"); if ( _par0 > 0 ) |