java.lang

Class ArrayIndexOutOfBoundsException

public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException

Thrown when attempting to access a position outside the valid range of an array. For example:
 int[] i = { 1 };
 i[1] = 2;
 

UNKNOWN: updated to 1.4

Constructor Summary
ArrayIndexOutOfBoundsException()
Create an exception without a message.
ArrayIndexOutOfBoundsException(String s)
Create an exception with a message.
ArrayIndexOutOfBoundsException(int index)
Create an exception indicating the illegal index.

Constructor Detail

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException()
Create an exception without a message.

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(String s)
Create an exception with a message.

Parameters: s the message

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(int index)
Create an exception indicating the illegal index.

Parameters: index the invalid index