Packages  This Package  Prev  Next  Index  

§1.25 Class ArrayIndexOutOfBoundsException

public  class  java.lang.ArrayIndexOutOfBoundsException
    extends  java.lang.IndexOutOfBoundsException  (I-§1.35)
{
        // Constructors
    public ArrayIndexOutOfBoundsException();	§1.25.1
    public ArrayIndexOutOfBoundsException(int  index);	§1.25.2
    public ArrayIndexOutOfBoundsException(String  s);	§1.25.3
}
Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.


Constructors

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException()
Constructs an ArrayIndexOutOfBoundsException with no detail message.

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(int index)
Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.
Parameters:
index - the illegal index

ArrayIndexOutOfBoundsException

public ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com