geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r474948 - /geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java
Date Tue, 14 Nov 2006 20:23:27 GMT
Author: dain
Date: Tue Nov 14 12:23:27 2006
New Revision: 474948

URL: http://svn.apache.org/viewvc?view=rev&rev=474948
Log:
clean up exception handling

Modified:
    geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java

Modified: geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java?view=diff&rev=474948&r1=474947&r2=474948
==============================================================================
--- geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java
(original)
+++ geronimo/server/trunk/modules/geronimo-timer/src/main/java/org/apache/geronimo/timer/jdbc/JDBCWorkerPersistence.java
Tue Nov 14 12:23:27 2006
@@ -330,7 +330,7 @@
     private Connection getConnection() throws PersistenceException {
         try {
             return dataSource.getConnection();
-        } catch (SQLException e) {
+        } catch (Exception e) {
             throw new PersistenceException(e);
         }
     }
@@ -338,7 +338,7 @@
     private void close(Connection c, boolean reportSqlException) throws PersistenceException
{
         try {
             c.close();
-        } catch (SQLException e) {
+        } catch (Exception e) {
             if (!reportSqlException) {
                 throw new PersistenceException(e);
             }



Mime
View raw message