Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 42135 invoked from network); 4 Aug 2006 12:29:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Aug 2006 12:29:29 -0000 Received: (qmail 59673 invoked by uid 500); 4 Aug 2006 12:29:29 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 59507 invoked by uid 500); 4 Aug 2006 12:29:28 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 59487 invoked by uid 99); 4 Aug 2006 12:29:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 05:29:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of thorsten.scherler@wyona.com designates 195.226.6.68 as permitted sender) Received: from [195.226.6.68] (HELO mx1.wyona.com) (195.226.6.68) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2006 05:29:26 -0700 Received: from 182.red-83-59-167.dynamicip.rima-tde.net ([83.59.167.182] helo=[172.26.0.5]) by mx1.wyona.com with asmtp (Exim 3.35 #1 (Debian)) id 1G8ynW-0001p6-00 for ; Fri, 04 Aug 2006 14:29:02 +0200 Subject: Re: [jira] Commented: (FOR-914) [Java Coding] Do not raise exception when you can prevent them From: Thorsten Scherler To: dev@forrest.apache.org In-Reply-To: <16619328.1154693234460.JavaMail.jira@brutus> References: <16619328.1154693234460.JavaMail.jira@brutus> Content-Type: text/plain; charset=utf-8 Date: Fri, 04 Aug 2006 14:28:33 +0200 Message-Id: <1154694513.8136.48.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N El vie, 04-08-2006 a las 05:07 -0700, Tim Williams (JIRA) escribi=C3=B3: > [ http://issues.apache.org/jira/browse/FOR-914?page=3Dcomments#action= _12425730 ]=20 > =20 > Tim Williams commented on FOR-914: > ---------------------------------- >=20 > +1, though I'm probably as guilty as the next person;( > Some reference material: > http://www.javaworld.com/jw-08-2000/jw-0818-exceptions.html Thanks for this nice link. "So, following the general philosophy behind exceptions, should you dismiss the possibility that searches will return nothing? When a search comes up empty, is it not more a case of normal processing? Therefore, in order to use exceptions judiciously, choose the approach in Case 2 over Case 1." Hit the nail on the head. salu2 --=20 Thorsten Scherler COO Spain Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org thorsten.scherler@wyona.com thorsten@apache.org