commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [math] RegressionModelSpecificationException
Date Thu, 21 Jul 2011 18:06:31 GMT
Le 21/07/2011 19:48, Phil Steitz a écrit :
> 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 exception, mostly reusing existing messages, would suffice for
> most of the top level exceptions in the regression package.  If
> others are OK with this, I will add and fix the raw exceptions in
> the newly added updating classes and incorporate this change in
> regression refactoring.

Reducing the number IllegalArgumentException we use is a good thing, thanks.

Luc

>
> Phil
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message