|
Jamaica 6.4 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException
public class StringIndexOutOfBoundsException
StringIndexOutOfBoundsException is a runtime exception that is thrown on an attempt to access a character of a string with at an invalid index.
| Constructor Summary | |
|---|---|
StringIndexOutOfBoundsException()
Constructor for a StringIndexOutOfBoundsException with no detail message. |
|
StringIndexOutOfBoundsException(int index)
Constructor for a StringIndexOutOfBoundsException with the given illegal index. |
|
StringIndexOutOfBoundsException(String s)
Constructor for a StringIndexOutOfBoundsException with given detail message. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StringIndexOutOfBoundsException()
public StringIndexOutOfBoundsException(int index)
ensures
(getMessage().equals(Integer.toString(index)));
index - the illegal index.public StringIndexOutOfBoundsException(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s - the detail message.
|
Jamaica 6.4 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||