Arash Nikoo created POOL-395:
--------------------------------

             Summary: Improve exception thrown in 
GenericObjectPool.borrowObject when pool is exhausted
                 Key: POOL-395
                 URL: https://issues.apache.org/jira/browse/POOL-395
             Project: Commons Pool
          Issue Type: Improvement
    Affects Versions: 2.9.0
            Reporter: Arash Nikoo


It would be really nice to include some additional information for the 
following exception:
{{}}
{code:java}
org.apache.commons.pool2.impl.GenericObjectPool.borrowObject
java.util.NoSuchElementException: Pool exhausted{code}
{{}}

I suggest showing the following parameters in the exception message:
Min=x, Max=x, MinIdle=x, MaxIdle=x, Current=x



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to