Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 52822 invoked from network); 3 Oct 2006 16:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Oct 2006 16:30:56 -0000 Received: (qmail 34457 invoked by uid 500); 3 Oct 2006 16:30:55 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 33830 invoked by uid 500); 3 Oct 2006 16:30:53 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 33819 invoked by uid 99); 3 Oct 2006 16:30:53 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 09:30:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [65.39.152.239] ([65.39.152.239:33933] helo=white.metrobridge.net) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 13/84-08153-93092254 for ; Tue, 03 Oct 2006 09:30:50 -0700 Received: from [10.10.1.163] (unknown [66.119.182.210]) by white.metrobridge.net (Postfix) with ESMTP id E15D595C10C for ; Tue, 3 Oct 2006 08:03:14 -0700 (PDT) Message-ID: <45229019.1040609@elasticpath.com> Date: Tue, 03 Oct 2006 09:30:17 -0700 From: Ryan Heinen User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: Searching with "1" References: <6456507.post@talk.nabble.com> <6456825.post@talk.nabble.com> <6457067.post@talk.nabble.com> <6491379.post@talk.nabble.com> <6492358.post@talk.nabble.com> <6606447.post@talk.nabble.com> <6611744.post@talk.nabble.com> <6622407.post@talk.nabble.com> In-Reply-To: <6622407.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N djd0383 wrote: > After thinking through what was happening in Hits, I decided to see if > catching a general exception would come back with anything. Although it can > be argued that the code should have been doing this all along, that is a > different story. > > So, I added Exception to the catch clauses, and it in fact catch the > TooManyClauses which allowed me to solve to problem. My point though is > that if the code was to throw this exception and require me to catch it, > this problem would have fixed for me and potentially others as they are > writting the code. As an Eclipse user, it is nice when I create a try/catch > that it puts in all the required catches from the code within the try. If > you were to physically throw this exception, my try would have built the > catch when we created it, or at least errored that we needed it. I was just > curious why you were not throwing it? My guess is that you are asking why TooManyClauses is not a checked exception. I'm not really sure why the decision was made to make it unchecked, but for a queries that will definitely not throw that exception it reduces the amount of clutter/extra code that needs to be written. There are, however, many debates about the merits of using checked vs unchecked exceptions. Hopefully this comment clarifies the question at least. Ryan --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org