[jboss-cvs] JBossAS SVN: r73309 - trunk/connector/src/main/org/jboss/resource/adapter/jdbc/jdk6.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon May 12 13:10:44 EDT 2008
Author: jesper.pedersen
Date: 2008-05-12 13:10:44 -0400 (Mon, 12 May 2008)
New Revision: 73309
Modified:
trunk/connector/src/main/org/jboss/resource/adapter/jdbc/jdk6/WrappedConnectionJDK6.java
Log:
Catch SQLException and rethrow as SQLClientInfoException
Modified: trunk/connector/src/main/org/jboss/resource/adapter/jdbc/jdk6/WrappedConnectionJDK6.java
===================================================================
--- trunk/connector/src/main/org/jboss/resource/adapter/jdbc/jdk6/WrappedConnectionJDK6.java 2008-05-12 16:27:37 UTC (rev 73308)
+++ trunk/connector/src/main/org/jboss/resource/adapter/jdbc/jdk6/WrappedConnectionJDK6.java 2008-05-12 17:10:44 UTC (rev 73309)
@@ -266,9 +266,9 @@
public void setClientInfo(Properties properties) throws SQLClientInfoException
{
- lock();
try
{
+ lock();
try
{
Connection c = getUnderlyingConnection();
@@ -292,6 +292,12 @@
throw t;
}
}
+ catch (SQLException e)
+ {
+ SQLClientInfoException t = new SQLClientInfoException();
+ t.initCause(e);
+ throw t;
+ }
finally
{
unlock();
@@ -300,9 +306,9 @@
public void setClientInfo(String name, String value) throws SQLClientInfoException
{
- lock();
try
{
+ lock();
try
{
Connection c = getUnderlyingConnection();
@@ -326,6 +332,12 @@
throw t;
}
}
+ catch (SQLException e)
+ {
+ SQLClientInfoException t = new SQLClientInfoException();
+ t.initCause(e);
+ throw t;
+ }
finally
{
unlock();
More information about the jboss-cvs-commits
mailing list