commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Steitz <>
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,

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message