aicas logoJamaica 6.4 release 1

java.lang
Class StringIndexOutOfBoundsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IndexOutOfBoundsException
                  extended by java.lang.StringIndexOutOfBoundsException
All Implemented Interfaces:
Serializable

public class StringIndexOutOfBoundsException
extends IndexOutOfBoundsException

StringIndexOutOfBoundsException is a runtime exception that is thrown on an attempt to access a character of a string with at an invalid index.

Since:
1.0
See Also:
Serialized Form

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

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException()
Constructor for a StringIndexOutOfBoundsException with no detail message.


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(int index)
Constructor for a StringIndexOutOfBoundsException with the given illegal index.

ensures

    (getMessage().equals(Integer.toString(index)));
 

Parameters:
index - the illegal index.

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(String s)
Constructor for a StringIndexOutOfBoundsException with given detail message.

ensures

    (s != null IMPLIES getMessage().equals(s));
 

Parameters:
s - the detail message.

aicas logoJamaica 6.4 release 1

aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2015 aicas GmbH. All Rights Reserved.