diff options
Diffstat (limited to 'connectivity/source/drivers/kab/KResultSet.cxx')
-rw-r--r-- | connectivity/source/drivers/kab/KResultSet.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/connectivity/source/drivers/kab/KResultSet.cxx b/connectivity/source/drivers/kab/KResultSet.cxx index 043fce1f8b74..e797274fc143 100644 --- a/connectivity/source/drivers/kab/KResultSet.cxx +++ b/connectivity/source/drivers/kab/KResultSet.cxx @@ -164,16 +164,9 @@ sal_Int32 SAL_CALL KabResultSet::findColumn(const OUString& columnName) throw(SQ columnName.equalsIgnoreAsciiCase(xMeta->getColumnName(i))) return i; - ::connectivity::SharedResources aResources; - const OUString sError( aResources.getResourceStringWithSubstitution( - STR_INVALID_COLUMNNAME, - "$columnname$",columnName - ) ); - ::dbtools::throwGenericSQLException(sError,NULL); - - // Unreachable: - OSL_ASSERT(false); - return 0; + ::dbtools::throwInvalidColumnException( columnName, *this ); + assert(false); + return 0; // Never reached } // ------------------------------------------------------------------------- OUString SAL_CALL KabResultSet::getString(sal_Int32 columnIndex) throw(SQLException, RuntimeException) |