Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 5043 invoked from network); 27 Sep 2004 19:48:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Sep 2004 19:48:46 -0000 Received: (qmail 21868 invoked by uid 500); 27 Sep 2004 19:48:36 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 21779 invoked by uid 500); 27 Sep 2004 19:48:35 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 21765 invoked by uid 99); 27 Sep 2004 19:48:35 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [207.158.50.34] (HELO mail.sd.fgm.com) (207.158.50.34) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 27 Sep 2004 12:48:34 -0700 Received: from [192.168.1.203] (ncs.sd.fgm.com [207.158.50.36]) by mail.sd.fgm.com (Postfix) with ESMTP id 1682850F505 for ; Mon, 27 Sep 2004 12:48:33 -0700 (PDT) Message-ID: <41586E90.5070708@apache.org> Date: Mon, 27 Sep 2004 12:48:32 -0700 From: "matthew.hawthorne" User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [Pool] Use of Exception in API References: <32935.62.251.120.66.1095713399.squirrel@webmail.bibit.com> <20040927113231.G46335@minotaur.apache.org> In-Reply-To: <20040927113231.G46335@minotaur.apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Rodney Waldhoff wrote: > Fundamentally this is a drawback to a strongly typed, checked exception > system. I don't see how "replacing Exception with more specific > exceptions" could possibly work in the general case. It at least would allow clients to avoid catching NullPointerExceptions, IllegalArgumentExceptions, and other RuntimeExceptions. I've always disliked 'throws Exception' for this reason, and I think that creating a PoolException or something similar would be a good solution. Unfortunately, this would change the public API and is probably impossible. I've also barely used [pool] so I may be missing some more serious issues. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org