On Saturday, June 16, 2012 21:48:52 maarten van damme wrote: > Ok, It turns out that an array out of bound exception isn't an > exception but an error? > Try catch (Error e) worked fine.
Yes, it's a RangeError. It's considered a programming bug if you access an array out of bounds - just like any assertion failure is an AssertError and considered a bug in your program in if it fails. And so they kill the program when they fail. Catching either of them is generally a very bad idea. - Jonathan M Davis