|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException java.lang.IndexOutOfBoundsException java.lang.StringIndexOutOfBoundsException
public class StringIndexOutOfBoundsException
This exception can be thrown to indicate an attempt to access an index which is out of bounds of a String. Any negative integer, and a positive integer greater than or equal to the size of the string, is an index which would be out of bounds.
Constructor Summary | |
---|---|
StringIndexOutOfBoundsException()
Create an exception without a message. |
|
StringIndexOutOfBoundsException(int index)
Create an exception noting the illegal index. |
|
StringIndexOutOfBoundsException(String s)
Create an exception with a message. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
getCause, getLocalizedMessage, getMessage, initCause, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringIndexOutOfBoundsException()
public StringIndexOutOfBoundsException(String s)
s
- the messagepublic StringIndexOutOfBoundsException(int index)
index
- the invalid index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |