java.lang.StringIndexOutOfBoundsException
java.lang.IndexOutOfBoundsException
None
None
JDK 1.0 or later
A StringIndexOutOfBoundsException is thrown when a String or StringBuffer object detects an out-of-range index. An out-of-range index occurs when the index is less than zero, or greater than or equal to the length of the string.
public class java.lang.StringIndexOutOfBoundsException extends java.lang.IndexOutOfBoundsException { // Constructors public StringIndexOutOfBoundsException(); public StringIndexOutOfBoundsException(int index); public StringIndexOutOfBoundsException(String s); }
This constructor creates a StringIndexOutOfBoundsException with no associated detail message.
The index value that was out of bounds
This constructor creates an StringIndexOutOfBoundsException with an associated message that mentions the specified index.
The detail message.
This constructor creates a StringIndexOutOfBoundsException with the specified detail message.
Method |
Inherited From |
Method |
Inherited From |
---|---|---|---|
clone() |
Object |
equals(Object) |
Object |
fillInStackTrace() |
Throwable |
finalize() |
Object |
getClass() |
Object |
getLocalizedMessage() |
Throwable |
getMessage() |
Throwable |
hashCode() |
Object |
notify() |
Object |
notifyAll() |
Object |
printStackTrace() |
Throwable |
printStackTrace(PrintStream) |
Throwable |
printStackTrace(PrintWriter) |
Throwable |
toString() |
Object |
wait() |
Object |
wait(long) |
Object |
wait(long, int) |
Object |
Exception, IndexOutOfBoundsException, RuntimeException, Throwable
This HTML Help has been published using the chm2web software. |