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: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
