commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <phil.ste...@gmail.com>
Subject [math] right way to throw IndexOutOfBoundsException?
Date Mon, 08 Aug 2011 05:47:41 GMT
I was about to do this:
throw MathRuntimeException.createArrayIndexOutOfBoundsException(
                    LocalizedFormats.OUT_OF_RANGE_SIMPLE, index, 0,
parameters.length);

but remembered that this is now deprecated.  Do I need to add a
MathArrayIndexOutOfBoundsException extending the JDK exception and
then throw that directly?  

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message