Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1:/tmp/cvs-serv27214
Modified Files:
ProxyStatement.java
Log Message:
New fatal-sql-exception-wrapper-class allows you to define what exception is used as a wrapper. This means that you
can make it a RuntimeException if you need to.
Index: ProxyStatement.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ProxyStatement.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** ProxyStatement.java 10 Sep 2003 22:21:04 -0000 1.20
--- ProxyStatement.java 29 Sep 2003 17:48:49 -0000 1.21
***************
*** 84,90 ****
if (testException(sqlException)) {
// This is really a fatal one
! if (getConnectionPool().getDefinition().isWrapFatalSqlExceptions()) {
! throw new FatalSQLException(sqlException);
! }
}
}
--- 84,88 ----
if (testException(sqlException)) {
// This is really a fatal one
! FatalSqlExceptionHelper.throwFatalSQLException(getConnectionPool().getDefinition().getFatalSqlExceptionWrapper(), sqlException);
}
}
***************
*** 96,102 ****
if (testException(sqlException)) {
// This is really a fatal one
! if (getConnectionPool().getDefinition().isWrapFatalSqlExceptions()) {
! throw new FatalSQLException(sqlException);
! }
}
}
--- 94,98 ----
if (testException(sqlException)) {
// This is really a fatal one
! FatalSqlExceptionHelper.throwFatalSQLException(getConnectionPool().getDefinition().getFatalSqlExceptionWrapper(), sqlException);
}
}
***************
*** 123,126 ****
--- 119,126 ----
Revision history:
$Log$
+ Revision 1.21 2003/09/29 17:48:49 billhorsman
+ New fatal-sql-exception-wrapper-class allows you to define what exception is used as a wrapper. This means that you
+ can make it a RuntimeException if you need to.
+
Revision 1.20 2003/09/10 22:21:04 chr32
Removing > jdk 1.2 dependencies.
|