Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
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

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.

Authors:

Constructor Summary

StringIndexOutOfBoundsException()

Create an exception without a message.
StringIndexOutOfBoundsException(java.lang.String s)

Create an exception with a message.
StringIndexOutOfBoundsException(int index)

Create an exception noting the illegal index.

Constructor Details

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException()

Create an exception without a message.


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(int index)

Create an exception noting the illegal index.

Parameters:


StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(java.lang.String s)

Create an exception with a message.

Parameters: