commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Thomas (JIRA)" <j...@apache.org>
Subject [jira] Updated: (POOL-148) borrowObject should return the exception thrown by validateObject when throwing an Exception to let Exceptions be handled at a higher level
Date Wed, 09 Sep 2009 11:23:57 GMT

     [ https://issues.apache.org/jira/browse/POOL-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mark Thomas updated POOL-148:
-----------------------------

    Fix Version/s: 2.0

Bumping this to 2.0 where the minimum java version will be 1.4+ most likely 1.5

> borrowObject should return the exception thrown by validateObject when throwing an Exception
to let Exceptions be handled at a higher level
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: POOL-148
>                 URL: https://issues.apache.org/jira/browse/POOL-148
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 1.5.2
>         Environment: All
>            Reporter: Monsieur EDI
>             Fix For: 2.0
>
>
>     public Object borrowObject() throws Exception {
> ...
>             try {
> ...
>                 if(newlyCreated) {
>                     throw new NoSuchElementException("Could not create a validated object,
cause: " + e.getMessage());
>                 }
> SHOULD BE CHANGED TO :
>                 if(newlyCreated) {
>                     throw new Exception("Could not create a validated object", e);
>                 }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message