summaryrefslogtreecommitdiff
path: root/include/connectivity/dbexception.hxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2013-09-11 21:40:41 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-09-12 17:26:12 +0000
commit42165189826367937737861116e969a22e9db787 (patch)
tree69d8ec60869aee5981ecc4e5edbc1e3a89a625d7 /include/connectivity/dbexception.hxx
parenta042cdd7eff15ed5f6cbd613588b3fca9509a85e (diff)
Update implementations of ColumnLocate::findColumn to throw on invalid column.
Change-Id: I7a9354ecd35a70a005c6c50e38d27de9b33332bd Reviewed-on: https://gerrit.libreoffice.org/5922 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'include/connectivity/dbexception.hxx')
-rw-r--r--include/connectivity/dbexception.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/connectivity/dbexception.hxx b/include/connectivity/dbexception.hxx
index a84450b607d8..c94e12a96ef3 100644
--- a/include/connectivity/dbexception.hxx
+++ b/include/connectivity/dbexception.hxx
@@ -308,6 +308,19 @@ OOO_DLLPUBLIC_DBTOOLS void throwFeatureNotImplementedException(
throw (::com::sun::star::sdbc::SQLException);
//----------------------------------------------------------------------------------
+/** throw a SQLException with SQLState 42S22 (Column Not Found)
+ @param _rColumnNameName
+ The column that couldn't be found.
+ @param _rxContext
+ the context of the exception
+*/
+OOO_DLLPUBLIC_DBTOOLS void throwInvalidColumnException(
+ const OUString& _rColumnName,
+ const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& _rxContext
+ )
+ throw (::com::sun::star::sdbc::SQLException);
+
+//----------------------------------------------------------------------------------
/** throws an SQLException
*/
OOO_DLLPUBLIC_DBTOOLS void throwSQLException(