Back to index

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

Thrown when attempting to access a position outside the valid range of an array. More...

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

List of all members.

Public Member Functions

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

Static Private Attributes

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

Detailed Description

Thrown when attempting to access a position outside the valid range of an array.

For example:

 int[] i = { 1 };
 i[1] = 2;
 
Author:
Brian Jones
Warren Levy warre.nosp@m.nl@c.nosp@m.ygnus.nosp@m..com updated to 1.4

Definition at line 54 of file ArrayIndexOutOfBoundsException.java.


Constructor & Destructor Documentation

Create an exception without a message.

Definition at line 64 of file ArrayIndexOutOfBoundsException.java.

  {
  }

Create an exception with a message.

Parameters:
sthe message

Definition at line 73 of file ArrayIndexOutOfBoundsException.java.

  {
    super(s);
  }

Create an exception indicating the illegal index.

Parameters:
indexthe invalid index

Definition at line 83 of file ArrayIndexOutOfBoundsException.java.

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

Member Data Documentation

final long java.lang.ArrayIndexOutOfBoundsException.serialVersionUID = -5116101128118950844L [static, private]

Compatible with JDK 1.0+.

Reimplemented from java.lang.IndexOutOfBoundsException.

Definition at line 59 of file ArrayIndexOutOfBoundsException.java.


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