Back to index

plt-scheme  4.2.1
Public Member Functions | Static Private Attributes
java.lang.StringIndexOutOfBoundsException Class Reference

This exception can be thrown to indicate an attempt to access an index which is out of bounds of a String. More...

Inheritance diagram for java.lang.StringIndexOutOfBoundsException:
Inheritance graph
[legend]
Collaboration diagram for java.lang.StringIndexOutOfBoundsException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StringIndexOutOfBoundsException ()
 Create an exception without a message.
 StringIndexOutOfBoundsException (String s)
 Create an exception with a message.
 StringIndexOutOfBoundsException (int index)
 Create an exception noting the illegal index.

Static Private Attributes

static final long serialVersionUID = -6762910422159637258L
 Compatible with JDK 1.0+.

Detailed Description

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.

Author:
Brian Jones
Warren Levy warre.nosp@m.nl@c.nosp@m.ygnus.nosp@m..com updated to 1.4

Definition at line 52 of file StringIndexOutOfBoundsException.java.


Constructor & Destructor Documentation

Create an exception without a message.

Definition at line 62 of file StringIndexOutOfBoundsException.java.

  {
  }

Create an exception with a message.

Parameters:
sthe message

Definition at line 71 of file StringIndexOutOfBoundsException.java.

  {
    super(s);
  }

Create an exception noting the illegal index.

Parameters:
indexthe invalid index

Definition at line 81 of file StringIndexOutOfBoundsException.java.

  {
    super("String index out of range: " + index);
  }

Member Data Documentation

final long java.lang.StringIndexOutOfBoundsException.serialVersionUID = -6762910422159637258L [static, private]

Compatible with JDK 1.0+.

Reimplemented from java.lang.IndexOutOfBoundsException.

Definition at line 57 of file StringIndexOutOfBoundsException.java.


The documentation for this class was generated from the following file: