Return-Path: Delivered-To: apmail-incubator-abdera-commits-archive@locus.apache.org Received: (qmail 54757 invoked from network); 13 Feb 2008 04:11:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 04:11:07 -0000 Received: (qmail 79591 invoked by uid 500); 13 Feb 2008 04:11:00 -0000 Delivered-To: apmail-incubator-abdera-commits-archive@incubator.apache.org Received: (qmail 79574 invoked by uid 500); 13 Feb 2008 04:11:00 -0000 Mailing-List: contact abdera-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-commits@incubator.apache.org Received: (qmail 79565 invoked by uid 99); 13 Feb 2008 04:11:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 20:11:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasnell@gmail.com designates 64.233.178.251 as permitted sender) Received: from [64.233.178.251] (HELO hs-out-0708.google.com) (64.233.178.251) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 04:10:27 +0000 Received: by hs-out-0708.google.com with SMTP id n78so848817hsc.12 for ; Tue, 12 Feb 2008 20:10:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=isQKeQsoqQmZPl2mAWx07c4hXJCkc3PA408hMimo8+w=; b=Mt8PocFs1Mq+dJ2Pu0QPOkoMVRe5TlRggoWjHaiWbmOa6MT0tGbjo2LzYW+EHgSEHM9nRg0FJJp78pqdkaLyXVWP/2XCt6fGgV13y3IFVuDTK/huxmuI18JtcHz0/vpZQbKmydY6ta3+LnkfmSfDTPPR5DybtSFX4Z7+AVJCteI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=pn587Rp+452xPMQD/LvWDOP0qUVvzSHk1FAPOHjZL1Qymg9XlQ0BrdhcqTvqIeUcvB/VeAwygadGSkUoVItB7H/wgsopNeq5hokG4uWa8/McWBXy96D8b+DJunsObAMK0n9CzC/1e++JApi8zCpLrQHuz81gjwk4oV5wauUwL+U= Received: by 10.100.33.19 with SMTP id g19mr2675504ang.104.1202875835195; Tue, 12 Feb 2008 20:10:35 -0800 (PST) Received: from ?192.168.1.2? ( [67.181.218.96]) by mx.google.com with ESMTPS id a30sm1954876rnb.8.2008.02.12.20.10.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Feb 2008 20:10:34 -0800 (PST) Message-ID: <47B26DB7.8050308@gmail.com> Date: Tue, 12 Feb 2008 20:10:31 -0800 From: James M Snell User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org CC: abdera-commits@incubator.apache.org Subject: Re: svn commit: r627173 - in /incubator/abdera/java/trunk/adapters/couchdb: readme src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java References: <20080212231002.AA8611A983E@eris.apache.org> <47B26313.3030008@mulesource.com> In-Reply-To: <47B26313.3030008@mulesource.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Yep, sorry, old habits die hard, especially the bad ones. - James Dan Diephouse wrote: > Re: empty catch block - can we at least put a notice of why we're not > doing anything with that exception? And what happens if its a > runtimeexception? Is there something more specific we can catch than > Exception? > - Dan > > jmsnell@apache.org wrote: >> Author: jmsnell >> Date: Tue Feb 12 15:10:01 2008 >> New Revision: 627173 >> >> URL: http://svn.apache.org/viewvc?rev=627173&view=rev >> Log: >> mention that the html and json jars are also required >> handle an error condition properly in getEntry >> >> Modified: >> incubator/abdera/java/trunk/adapters/couchdb/readme >> >> incubator/abdera/java/trunk/adapters/couchdb/src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java >> >> >> Modified: incubator/abdera/java/trunk/adapters/couchdb/readme >> URL: >> http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/couchdb/readme?rev=627173&r1=627172&r2=627173&view=diff >> >> ============================================================================== >> >> --- incubator/abdera/java/trunk/adapters/couchdb/readme (original) >> +++ incubator/abdera/java/trunk/adapters/couchdb/readme Tue Feb 12 >> 15:10:01 2008 >> @@ -3,6 +3,7 @@ >> Dependencies: >> * Abdera Core, Parser, Protocol, Server modules >> + * Abdera json and html extensions >> * CouchDb4J >> (http://www.couchdbwiki.com/index.php?title=Getting_Started_with_Java) >> Using the Adapter: >> >> Modified: >> incubator/abdera/java/trunk/adapters/couchdb/src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java >> >> URL: >> http://svn.apache.org/viewvc/incubator/abdera/java/trunk/adapters/couchdb/src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java?rev=627173&r1=627172&r2=627173&view=diff >> >> ============================================================================== >> >> --- >> incubator/abdera/java/trunk/adapters/couchdb/src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java >> (original) >> +++ >> incubator/abdera/java/trunk/adapters/couchdb/src/main/java/org/apache/abdera/protocol/server/adapters/couchdb/CouchDbAdapter.java >> Tue Feb 12 15:10:01 2008 >> @@ -212,7 +212,10 @@ >> String entry = target.getParameter("entry"); >> Session session = new Session(host,port); >> Database db = session.getDatabase(feed); >> - Document doc = db.getDocument(entry); >> + Document doc = null; >> + try { >> + doc = db.getDocument(entry); >> + } catch (Exception e) {} >> if (doc != null) >> return new JsonObjectResponseContext( >> request.getAbdera(), >> >> >> > >