Wednesday 13 March 2013

java.lang StringIndexOutOfBoundsException


java.lang
StringIndexOutOfBoundsException

Declaration
public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.IndexOutOfBoundsException
|
+--java.lang.StringIndexOutOfBoundsException
Description
Thrown by the charAt method in 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()
StringIndexOutOfBoundsException(int index)
StringIndexOutOfBoundsException(String s)




Methods inherited from class Object
equals(Object), getClass(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()
Methods inherited from class Throwable
getMessage(), printStackTrace(), toString()



Constructors
StringIndexOutOfBoundsException()
Declaration:
public StringIndexOutOfBoundsException()
Description:
Constructs a StringIndexOutOfBoundsException with no detail message.
Since: JDK1.0.
StringIndexOutOfBoundsException(String)
Declaration:
public StringIndexOutOfBoundsException(java.lang.String s)
Description:
Constructs a StringIndexOutOfBoundsException with the specified detail message.
Parameters:
s - the detail message.
StringIndexOutOfBoundsException(int)
Declaration:
public StringIndexOutOfBoundsException(int index)
Description:
Constructs a new StringIndexOutOfBoundsException class with an argument indicating the
illegal index.
Parameters:
index - the illegal index.



No comments:

Post a Comment