commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp PoolingDataSource.java
Date Mon, 11 Aug 2003 18:35:52 GMT
dirkv       2003/08/11 11:35:52

  Modified:    dbcp/src/java/org/apache/commons/dbcp PoolingDataSource.java
  Log:
  use SQLNestedException for improved error messages
  
  Revision  Changes    Path
  1.6       +6 -4      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolingDataSource.java
  
  Index: PoolingDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/PoolingDataSource.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- PoolingDataSource.java	11 Aug 2003 16:01:25 -0000	1.5
  +++ PoolingDataSource.java	11 Aug 2003 18:35:52 -0000	1.6
  @@ -108,6 +108,8 @@
               return (Connection)(_pool.borrowObject());
           } catch(SQLException e) {
               throw e;
  +        } catch(NoSuchElementException e) {
  +            throw new SQLNestedException("Cannot get a connection", e);
           } catch(RuntimeException e) {
               throw e;
           } catch(Exception e) {
  
  
  

Mime
View raw message