diff options
author | Ocke Janssen <oj@openoffice.org> | 2001-07-06 07:37:18 +0000 |
---|---|---|
committer | Ocke Janssen <oj@openoffice.org> | 2001-07-06 07:37:18 +0000 |
commit | 5b9954a557775dd440f8d38a667afab4b736d0d1 (patch) | |
tree | 4b0dcc0bb015a0299f95d8ac3496b71746ebeb32 /connectivity/source/drivers/jdbc/Object.cxx | |
parent | b11b924e066adac6613d4393b149babaea6bdf72 (diff) |
#88248# call ExceptionClear before using the it intern
Diffstat (limited to 'connectivity/source/drivers/jdbc/Object.cxx')
-rw-r--r-- | connectivity/source/drivers/jdbc/Object.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/jdbc/Object.cxx b/connectivity/source/drivers/jdbc/Object.cxx index d7ba645ad7..594aa34920 100644 --- a/connectivity/source/drivers/jdbc/Object.cxx +++ b/connectivity/source/drivers/jdbc/Object.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Object.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: oj $ $Date: 2001-05-31 08:29:15 $ + * last change: $Author: oj $ $Date: 2001-07-06 08:37:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -382,6 +382,7 @@ void java_lang_Object::ThrowSQLException(JNIEnv * pEnv,const Reference< XInterfa jthrowable jThrow = NULL; if(pEnv && (jThrow = pEnv->ExceptionOccurred())) { + pEnv->ExceptionClear();// we have to clear the exception here because we want to handle it itself if(pEnv->IsInstanceOf(jThrow,java_sql_SQLException_BASE::getMyClass())) { java_sql_SQLException_BASE* pException = new java_sql_SQLException_BASE(pEnv,jThrow); @@ -405,7 +406,6 @@ void java_lang_Object::ThrowSQLException(JNIEnv * pEnv,const Reference< XInterfa delete pThrow; throw SQLException(aMsg,_rContext,::rtl::OUString(),-1,Any()); } - pEnv->ExceptionClear(); } } |