java.lang
Class StringIndexOutOfBoundsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IndexOutOfBoundsException
                          |
                          +--java.lang.StringIndexOutOfBoundsException

public class StringIndexOutOfBoundsException
extends IndexOutOfBoundsException

Signals that a String index is out of range.

See Also:
String.charAt(int)

Constructor Summary
StringIndexOutOfBoundsException()
          Constructs a StringIndexOutOfBoundsException with no detail message.
StringIndexOutOfBoundsException(int index)
          Constructs a StringIndexOutOfBoundsException initialized with the specified index.
StringIndexOutOfBoundsException(String s)
          Constructs a StringIndexOutOfBoundsException with the specified detail message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException()
Constructs a StringIndexOutOfBoundsException with no detail message. A detail message is a String that describes this particular exception.


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(String s)
Constructs a StringIndexOutOfBoundsException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters:
s - the String containing a detail message about the error

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(int index)
Constructs a StringIndexOutOfBoundsException initialized with the specified index.

Parameters:
index - the offending index