Packages  This Package  Prev  Next  Index  

§1.35 Class IndexOutOfBoundsException

public  class  java.lang.IndexOutOfBoundsException
    extends  java.lang.RuntimeException  (I-§1.42)
{
        // Constructors
    public IndexOutOfBoundsException();	§1.35.1
    public IndexOutOfBoundsException(String  s);	§1.35.2
}
Instances of this class are thrown indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range.

Applications can subclass this class to indicate similar exceptions.


Constructors

IndexOutOfBoundsException

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

IndexOutOfBoundsException

public IndexOutOfBoundsException(String s)
Constructs a IndexOutOfBoundsException 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