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 Tue, 30 Sep 2003 20:51:03 GMT
dirkv       2003/09/30 13:51:03

  Modified:    dbcp/src/java/org/apache/commons/dbcp PoolingDataSource.java
  Log:
  improve error messages
  
  Revision  Changes    Path
  1.10      +5 -5      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.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- PoolingDataSource.java	13 Sep 2003 22:29:39 -0000	1.9
  +++ PoolingDataSource.java	30 Sep 2003 20:51:03 -0000	1.10
  @@ -145,11 +145,11 @@
           } catch(SQLException e) {
               throw e;
           } catch(NoSuchElementException e) {
  -            throw new SQLNestedException("Cannot get a connection", e);
  +            throw new SQLNestedException("Cannot get a connection, pool exhausted", e);
           } catch(RuntimeException e) {
               throw e;
           } catch(Exception e) {
  -            throw new SQLNestedException("Cannot get a connection", e);
  +            throw new SQLNestedException("Cannot get a connection, general error", e);
           }
       }
   
  
  
  

Mime
View raw message