java.lang
Class ArrayIndexOutOfBoundsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IndexOutOfBoundsException
                  extended byjava.lang.ArrayIndexOutOfBoundsException
All Implemented Interfaces:
Serializable

public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException

This runtime exception is thrown when the an array is indexed with a value less than zero, or greater than or equal to the size of the array.

See Also:
Serialized Form

Constructor Summary
ArrayIndexOutOfBoundsException()
          Constructs a new instance of this class with its walkback filled in.
ArrayIndexOutOfBoundsException(int index)
          Constructs a new instance of this class with its walkback and message (which is based on the argument which is the index which failed) filled in.
ArrayIndexOutOfBoundsException(java.lang.String detailMessage)
          Constructs a new instance of this class with its walkback and message filled in.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException()
Constructs a new instance of this class with its walkback filled in.


ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(int index)
Constructs a new instance of this class with its walkback and message (which is based on the argument which is the index which failed) filled in.

Parameters:
index - int the offending index.

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(java.lang.String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.

Parameters:
detailMessage - String The detail message for the exception.