Olliedee,
You will need to write one user-defined exception class that can extend ArrayIndexOutOfBoundsException.
Still, you will need to catch ArrayIndexOutOfBoundsException in your source...