throw with String
Ralf Ebert
ralf at ralfebert.de
Wed Sep 15 15:49:43 PDT 2010
> Do you mean that it's not useful to make a difference between
> a NPE and an AIOOB ?
No. I was saying that sometimes code is written that throws exceptions
where the author knows that nobody wants to specifically catch this type
of exception.
For NullPointerException and ArrayIndexOutOfBoundsException, no idea, I
could imagine it being useful when writing code that can recover from
programming errors. But despite from that, what's the use case for
making that difference or doing a catch(ArrayIndexOutOfBoundsException
e)?
Ralf
More information about the coin-dev
mailing list