FileDocCategorySizeDatePackage
StringIndexOutOfBoundsException.javaAPI DocAndroid 1.5 API2224Wed May 06 22:41:04 BST 2009java.lang

StringIndexOutOfBoundsException

public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
Thrown when the a string is indexed with a value less than zero, or greater than or equal to the size of the array.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public StringIndexOutOfBoundsException()
Constructs a new {@code StringIndexOutOfBoundsException} that includes the current stack trace.

since
Android 1.0


                        
      
        super();
    
public StringIndexOutOfBoundsException(int index)
Constructs a new {@code StringIndexOutOfBoundsException} with the current stack trace and a detail message that is based on the specified invalid {@code index}.

param
index the index which is out of bounds.
since
Android 1.0

        super(Msg.getString("K0055", index)); //$NON-NLS-1$
    
public StringIndexOutOfBoundsException(String detailMessage)
Constructs a new {@code StringIndexOutOfBoundsException} with the current stack trace and the specified detail message.

param
detailMessage the detail message for this exception.
since
Android 1.0

        super(detailMessage);
    
Methods Summary