java.lang
Class IndexOutOfBoundsException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--java.lang.IndexOutOfBoundsException
- Direct Known Subclasses:
- ArrayIndexOutOfBoundsException, StringIndexOutOfBoundsException
- public class IndexOutOfBoundsException
- extends RuntimeException
Signals that an index of some sort is out of bounds.
IndexOutOfBoundsException
public IndexOutOfBoundsException()
- Constructs an IndexOutOfBoundsException with no detail message.
A detail message is a String that describes this particular exception.
IndexOutOfBoundsException
public IndexOutOfBoundsException(String s)
- Constructs a IndexOutOfBoundsException with the specified detail message.
A detail message is a String that describes this particular exception.
- Parameters:
s
- the detail message