|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public class ArrayIndexOutOfBoundsException
ArrayIndexOutOfBoundsException is thrown when an attempt is made to access an array element with an index that is negative or larger or equal than the array length.
Constructor Summary | |
---|---|
ArrayIndexOutOfBoundsException()
Constructor for an ArrayIndexOutOfBoundsException with no detail message. |
|
ArrayIndexOutOfBoundsException(int index)
Constructor for an ArrayIndexOutOfBoundsException with a detail message referring to the given index. |
|
ArrayIndexOutOfBoundsException(String s)
Constructor for an ArrayIndexOutOfBoundsException 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 |
---|
public ArrayIndexOutOfBoundsException()
public ArrayIndexOutOfBoundsException(int index)
index
- the index value that is out of bounds.public ArrayIndexOutOfBoundsException(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s
- the detail message.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |