commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r829618 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java
Date Sun, 25 Oct 2009 16:57:18 GMT
Author: psteitz
Date: Sun Oct 25 16:57:18 2009
New Revision: 829618

URL: http://svn.apache.org/viewvc?rev=829618&view=rev
Log:
Removed deprecated exception class prior to first release of BasicManagedDataSourc.

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java?rev=829618&r1=829617&r2=829618&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java
(original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/BasicManagedDataSource.java
Sun Oct 25 16:57:18 2009
@@ -22,7 +22,6 @@
 import org.apache.commons.dbcp.ConnectionFactory;
 import org.apache.commons.dbcp.PoolableConnectionFactory;
 import org.apache.commons.dbcp.PoolingDataSource;
-import org.apache.commons.dbcp.SQLNestedException;
 import org.apache.commons.pool.KeyedObjectPoolFactory;
 
 import javax.sql.XADataSource;
@@ -110,7 +109,7 @@
             String message = "Cannot load XA data source class '" + xaDataSource + "'";
             logWriter.println(message);
             t.printStackTrace(logWriter);
-            throw new SQLNestedException(message, t);
+            throw new SQLException(message, t);
         }
 
         // Create the xa data source instance
@@ -121,7 +120,7 @@
             String message = "Cannot create XA data source of class '" + xaDataSource + "'";
             logWriter.println(message);
             t.printStackTrace(logWriter);
-            throw new SQLNestedException(message, t);
+            throw new SQLException(message, t);
         }
 
         // finally, create the XAConectionFactory using the XA data source
@@ -164,7 +163,7 @@
         } catch (RuntimeException e) {
             throw e;
         } catch (Exception e) {
-            throw new SQLNestedException("Cannot create PoolableConnectionFactory (" + e.getMessage()
+ ")", e);
+            throw new SQLException("Cannot create PoolableConnectionFactory (" + e.getMessage()
+ ")", e);
         }
     }
 }



Mime
View raw message