Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 92360 invoked from network); 17 Aug 2009 20:38:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Aug 2009 20:38:31 -0000 Received: (qmail 93521 invoked by uid 500); 17 Aug 2009 20:38:37 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 93398 invoked by uid 500); 17 Aug 2009 20:38:36 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 93366 invoked by uid 99); 17 Aug 2009 20:38:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 20:38:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Aug 2009 20:38:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D038C234C044 for ; Mon, 17 Aug 2009 13:38:14 -0700 (PDT) Message-ID: <800460650.1250541494845.JavaMail.jira@brutus> Date: Mon, 17 Aug 2009 13:38:14 -0700 (PDT) From: "Monsieur EDI (JIRA)" To: issues@commons.apache.org Subject: [jira] Created: (POOL-148) borrowObject should return the exception thrown by validateObject when throwing an Exception to let Exceptions be handled at a higher level MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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 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.