dirkv       2003/11/10 06:25:29

  Modified:    pool/src/java/org/apache/commons/pool/impl
                        GenericObjectPool.java
  Log:
  Improve error message when no validated object could be created
  suggested by Chris Handorf
  
  Revision  Changes    Path
  1.30      +4 -4      
jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
  
  Index: GenericObjectPool.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/pool/src/java/org/apache/commons/pool/impl/GenericObjectPool.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- GenericObjectPool.java    9 Oct 2003 21:45:56 -0000       1.29
  +++ GenericObjectPool.java    10 Nov 2003 14:25:29 -0000      1.30
  @@ -848,7 +848,7 @@
                       // cannot destroy broken object 
                   }
                   if(newlyCreated) {
  -                    throw new NoSuchElementException("Could not create a validated 
object");
  +                    throw new NoSuchElementException("Could not create a validated 
object, cause: " + e.getMessage());
                   } 
                   else {
                       continue; // keep looping
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to