git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@708587
13f79535-47bb-0310-9956-
ffa450edef68
return null;\r
}\r
\r
- protected PooledConnection borrowConnection(long now, PooledConnection con) {\r
+ protected PooledConnection borrowConnection(long now, PooledConnection con) throws SQLException {\r
//we have a connection, lets set it up\r
boolean setToNull = false;\r
try {\r
} catch (Exception x) {\r
release(con); \r
setToNull = true;\r
+ if (x instanceof SQLException) {\r
+ throw (SQLException)x;\r
+ } else {\r
+ throw new SQLException(x);\r
+ }\r
}\r
} finally {\r
con.unlock();\r