Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 30277 invoked from network); 19 Nov 2004 10:22:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Nov 2004 10:22:07 -0000 Received: (qmail 57155 invoked by uid 500); 19 Nov 2004 10:22:01 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 57084 invoked by uid 500); 19 Nov 2004 10:22:01 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 57068 invoked by uid 99); 19 Nov 2004 10:22:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 19 Nov 2004 02:22:00 -0800 Received: (qmail 17876 invoked from network); 19 Nov 2004 10:14:37 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 19 Nov 2004 10:14:37 -0000 Message-ID: <805757409.1100859277736.JavaMail.apache@nagoya> Date: Fri, 19 Nov 2004 02:14:37 -0800 (PST) From: "Marc DeXeT (JIRA)" To: commons-dev@jakarta.apache.org Subject: =?ISO-8859-1?Q?[jira]_Mis-=E0-jour:_(JELLY-165)_CatchTag_closest_from?= =?ISO-8859-1?Q?_java_tryCatch_block_(with_expected_exceptions_list)?= In-Reply-To: <930516777.1100857884216.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/JELLY-165?page=history ] Marc DeXeT updated JELLY-165: ----------------------------- Attachment: patchCatchTag.txt Patch file for catchTag improvement > CatchTag closest from java tryCatch block (with expected exceptions list) > ------------------------------------------------------------------------- > > Key: JELLY-165 > URL: http://nagoya.apache.org/jira/browse/JELLY-165 > Project: jelly > Type: Improvement > Components: core / taglib.core > Versions: 1.0-beta-5 > Environment: JDK1.4_02 Windows XP Redhat AS 2.1 > Reporter: Marc DeXeT > Attachments: CatchTag.java, catchTagTest.zip, catchTagTest.zip, patchCatchTag.txt > > The actual CatchTag doesn't distinct kind of exception. > > > > > > > try { > doTag(); > } catch (Throwable t) { > process (); > } > It above all doesn't allow tryCatch nesting. > Improvements are following > 1) LIST : > This Tag implements expected exception list. If an unexpected exception is thrown, tag throws it upper. > So it's possible to get > try { > try { > try { > process(); > } catch( exceptionA lower} { > doLower(); > } > } catch( exceptionB middle ) { > doMidlle(); > } > } catch( exceptionC upper) { > doUpper(); > } > 2) Get REAL exception > As improvement, it implements too dissect exception stack to get the first not Jelly exception and put to context this one. > 3) Respect exception class parenthood. A assignable exception will be catched if her ancestor is in excpetion list. > See unit test for more details. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org