Class java.lang.ArrayIndexOutOfBoundsException
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.lang.ArrayIndexOutOfBoundsException

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

public class ArrayIndexOutOfBoundsException
extends IndexOutOfBoundsException
Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.

Version:
1.14, 07/01/98
Author:
unascribed
Since:
JDK1.0

Constructor Index

 o java.lang.ArrayIndexOutOfBoundsException()
Constructs an ArrayIndexOutOfBoundsException with no detail message.
 o java.lang.ArrayIndexOutOfBoundsException(int)
Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.
 o java.lang.ArrayIndexOutOfBoundsException(String)
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.

Constructors

 o ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException()
Constructs an ArrayIndexOutOfBoundsException with no detail message.

Since:
JDK1.0
 o ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException(int index)
Constructs a new ArrayIndexOutOfBoundsException class with an argument indicating the illegal index.

Parameters:
index - the illegal index.
Since:
JDK1.0
 o ArrayIndexOutOfBoundsException
public ArrayIndexOutOfBoundsException(String s)
Constructs an ArrayIndexOutOfBoundsException class with the specified detail message.

Parameters:
s - the detail message.
Since:
JDK1.0

All Packages  Class Hierarchy  This Package  Previous  Next  Index