Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class IndexOutOfBoundsException

Constructors

public  class  java.lang.IndexOutOfBoundsException
    extends  java.lang.RuntimeException  
{
        // Constructors
    public IndexOutOfBoundsException();	
    public IndexOutOfBoundsException(String  s);	
}

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.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.