[ 
https://issues.apache.org/jira/browse/POOL-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17370235#comment-17370235
 ] 

Gary D. Gregory edited comment on POOL-395 at 6/27/21, 2:52 PM:
----------------------------------------------------------------

In order to not overwhelm users with long messages, you enable statistics for 
these exception messages with 
{{BaseGenericObjectPool#setMessagesStatistics(true)}}.


was (Author: garydgregory):
In order to not overwhelm users with long messages, you enable statistics for 
these exception messages with 
{{BaseGenericObjectPool.setMessagesStatistics(true)}}.

> 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
>            Priority: Minor
>             Fix For: 2.11.0
>
>
> 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