Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 41883 invoked from network); 29 Jun 2002 19:27:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 29 Jun 2002 19:27:47 -0000 Received: (qmail 14367 invoked by uid 97); 29 Jun 2002 19:27:58 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 14336 invoked by uid 97); 29 Jun 2002 19:27:58 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 14309 invoked by uid 98); 29 Jun 2002 19:27:57 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Authentication-Warning: champion.sslsecure.com: iammichael owned process doing -bs Date: Sat, 29 Jun 2002 14:27:46 -0500 (CDT) From: "Michael A. Smith" X-X-Sender: iammichael@champion.sslsecure.com To: Jakarta Commons Developers List Subject: Re: [lang] NullArgumentException? In-Reply-To: <004f01c21f7c$fbafbf80$ad1a29d9@oemcomputer> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N On Sat, 29 Jun 2002, Stephen Colebourne wrote: > I would like to add a NullArgumentException class to the lang.exceptions > package. > > It would be a subclass of IllegalArgumentException. > It would be thrown when null is passed in as an argument when it shouldn't > be. > > Any objections? That's what java.lang.NullPointerException is for. "Applications should throw instances of this class to indicate other illegal uses of the null object." michael -- To unsubscribe, e-mail: For additional commands, e-mail: