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

Class StringIndexOutOfBoundsException

Constructors

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

Thrown by the charAt method in class class String and by other String methods to indicate that an index is either negative or greater than or equal to the size of the string.


Constructors


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException() 

Constructs a StringIndexOutOfBoundsException with no detail message.


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(int  index) 

Constructs a new StringIndexOutOfBoundsException class with an argument indicating the illegal index.

ParameterDescription
index the illegalindex


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(String  s) 

Constructs a StringIndexOutOfBoundsException with the specified detail message.

ParameterDescription
s the detail message



Top© 1996 Sun Microsystems, Inc. All rights reserved.