summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2001-10-26 07:02:33 +0000
committerOcke Janssen <oj@openoffice.org>2001-10-26 07:02:33 +0000
commit1d4f7c1a9517b3b3f5e3ff300ed29be0e852c131 (patch)
treebd8fb118f7da27139513dde21160ec8772a37e0c /forms
parentdfa343f9be202d1d7a9d04219cbfbebf94b5afef (diff)
#93524# catched Exception when cancelRowUpdates
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/DatabaseForm.cxx23
1 files changed, 18 insertions, 5 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index de7505c1ae52..89b651564f08 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: DatabaseForm.cxx,v $
*
- * $Revision: 1.40 $
+ * $Revision: 1.41 $
*
- * last change: $Author: fs $ $Date: 2001-10-22 15:28:38 $
+ * last change: $Author: oj $ $Date: 2001-10-26 08:02:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3803,9 +3803,22 @@ void SAL_CALL ODatabaseForm::deleteRow() throw( SQLException, RuntimeException )
//------------------------------------------------------------------------------
void SAL_CALL ODatabaseForm::cancelRowUpdates() throw( SQLException, RuntimeException )
{
- Reference<XResultSetUpdate> xUpdate;
- if (query_aggregation( m_xAggregate, xUpdate))
- xUpdate->cancelRowUpdates();
+ try
+ {
+ Reference<XResultSetUpdate> xUpdate;
+ if (query_aggregation( m_xAggregate, xUpdate))
+ xUpdate->cancelRowUpdates();
+ }
+ catch(RowSetVetoException& eVeto)
+ {
+ eVeto;
+ throw;
+ }
+ catch(SQLException& eDb)
+ {
+ onError(eDb, FRM_RES_STRING(RID_STR_ERR_INSERTRECORD));
+ throw;
+ }
}
//------------------------------------------------------------------------------