Return-Path: Delivered-To: apmail-hc-dev-archive@www.apache.org Received: (qmail 75821 invoked from network); 15 Jan 2010 18:43:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 18:43:16 -0000 Received: (qmail 12167 invoked by uid 500); 15 Jan 2010 18:43:16 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 12095 invoked by uid 500); 15 Jan 2010 18:43:15 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 12085 invoked by uid 99); 15 Jan 2010 18:43:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 18:43:15 +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.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 18:43:04 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id DE20617D17 for ; Fri, 15 Jan 2010 18:42:42 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 15 Jan 2010 18:42:42 -0000 Message-ID: <20100115184242.4101.78041@eos.apache.org> Subject: =?utf-8?q?=5BHttpcomponents_Wiki=5D_Update_of_=22CodingConventions=22_by_?= =?utf-8?q?TonyPoppleton?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpcomponents Wiki= " for change notification. The "CodingConventions" page has been changed by TonyPoppleton. http://wiki.apache.org/HttpComponents/CodingConventions?action=3Ddiff&rev1= =3D2&rev2=3D3 -------------------------------------------------- * In very rare cases it may be approriate to ignore an exception, in whi= ch case document it clearly. * TODO is there a custom HTTP client exception that is used? * Handle exceptional conditions by throwing an exception and not, for ex= ample, returning null from a method. - * Prefer unchecked exceptions (like RuntimeException) over checked excep= tions. Only use checked exceptions if it is expected that the caller can h= andle it or recover from it. Unchecked exceptions will just be propagated = back to the general exception handler, which is ideal. + * Prefer unchecked exceptions (like RuntimeException) over checked excep= tions as per [http://www.oracle.com/technology/pub/articles/dev2arch/2006/1= 1/effective-exceptions.html]. In summary, only use checked exceptions if i= t is expected that the caller can handle it or recover from it. Unchecked = exceptions will just be propagated back to the general exception handler, w= hich is ideal. }}} = =3D=3D Collections =3D=3D --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org