Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 77BA561F2 for ; Thu, 21 Jul 2011 19:42:59 +0000 (UTC) Received: (qmail 43404 invoked by uid 500); 21 Jul 2011 19:42:58 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 43320 invoked by uid 500); 21 Jul 2011 19:42:58 -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 43310 invoked by uid 99); 21 Jul 2011 19:42:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 19:42:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of phil.steitz@gmail.com designates 209.85.210.171 as permitted sender) Received: from [209.85.210.171] (HELO mail-iy0-f171.google.com) (209.85.210.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 19:42:49 +0000 Received: by iyi12 with SMTP id 12so1405471iyi.30 for ; Thu, 21 Jul 2011 12:42:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ruC2gDOZyZi45g5Bwepynx6B4CHf9JHXRItDuVe8rq4=; b=dr1qCawQGLNc3QuoryVUBw9sWhqRmk51HNZ0F5mkMHfBez84KIFvz5BvL609F+xNk8 qT9uWb5qnI5XleSMTooHdD+7Q+pRq4vjVvnw7me5TtOLDP/HYaLHMocPRos2JsaQttaG 2r/DcVZ8e3nBJxo+XGGN/Ayq85frz2xflJl/w= Received: by 10.143.42.5 with SMTP id u5mr290075wfj.432.1311277347804; Thu, 21 Jul 2011 12:42:27 -0700 (PDT) Received: from a.local (71-223-74-208.phnx.qwest.net [71.223.74.208]) by mx.google.com with ESMTPS id t7sm809758wfl.14.2011.07.21.12.42.24 (version=SSLv3 cipher=OTHER); Thu, 21 Jul 2011 12:42:25 -0700 (PDT) Message-ID: <4E28811F.4070508@gmail.com> Date: Thu, 21 Jul 2011 12:42:23 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Commons Developers List Subject: Re: [math] RegressionModelSpecificationException References: <4E286678.4070709@gmail.com> <20110721181809.GD7045@dusk.harfang.homelinux.org> In-Reply-To: <20110721181809.GD7045@dusk.harfang.homelinux.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 7/21/11 11:18 AM, Gilles Sadowski wrote: > On Thu, Jul 21, 2011 at 10:48:40AM -0700, Phil Steitz wrote: >> I propose that we add this to replace the generic math IAE that we >> throw in various places, e.g. in AbstractMLR#newSampleData, >> >> throw MathRuntimeException.createIllegalArgumentException( >> LocalizedFormats.INVALID_REGRESSION_ARRAY, >> data.length, nobs, nvars); > This way of generating exceptions is deprecated (as are classes > "o.a.c.math.MathException" and "o.a.c.math.MathRuntimeException"). > > Please make it > ---CUT--- > import org.apache.commons.math.exception.MathIllegalArgumentException; > // ... > throw new MathIllegalArgumentException(LocalizedFormats.INVALID_REGRESSION_ARRAY, > data.length, nobs, nvars); > ---CUT--- > > However, if many of the new classes are going to contain similar statements, > maybe that a new "RegressionException" is warranted. That is what I was suggesting above - to get rid of the deprecated stuff and replace with a new exception that would extend MathIllegalArgumentException. Phil > >> [...] > Thanks, > Gilles > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org