Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 3014 invoked from network); 2 Mar 2011 16:37:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 16:37:05 -0000 Received: (qmail 4506 invoked by uid 500); 2 Mar 2011 16:37:05 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 3540 invoked by uid 500); 2 Mar 2011 16:37:01 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 3531 invoked by uid 99); 2 Mar 2011 16:37:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:37:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.62.38.7] (HELO serv01.siteground309.com) (209.62.38.7) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 16:36:53 +0000 Received: from [71.165.63.226] (port=1082 helo=[192.168.1.2]) by serv01.siteground309.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Pup2P-0007SX-Mw for dev@commons.apache.org; Wed, 02 Mar 2011 10:36:33 -0600 Message-ID: <4D6E7210.7060507@sandglass-software.com> Date: Wed, 02 Mar 2011 08:36:32 -0800 From: Adrian Crum Organization: Sandglass Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.14) Gecko/20110221 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [Math - 403] Never propagate a "NullPointerException" resulting from bad usage of the API References: <20110301231236.GI22170@dusk.harfang.homelinux.org> <514CE0C1587E41418D26F4AE7EBAC6EA@BillPC> <20110302113717.GN22814@dusk.harfang.homelinux.org> In-Reply-To: <20110302113717.GN22814@dusk.harfang.homelinux.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv01.siteground309.com X-AntiAbuse: Original Domain - commons.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sandglass-software.com I agree with this view. It would help the developer who uses CM if the library told him/her what they did wrong ("argument 'foo' cannot be null") instead of a simple exception thrown message ("NullPointerException thrown at line nnn of class Xyz"). -Adrian On 3/2/2011 3:37 AM, Gilles Sadowski wrote: > In my view, the > exceptions are good if they allow to easily track down bugs (be they in CM > or in user code). Accordingly they must precisely point to the source of the > problem (in the code) and not try to outguess the user (as to what it > should mean for him). > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org