public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException
| Constructor and Description |
|---|
ArrayIndexOutOfBoundsException()
Constructs a new
ArrayIndexOutOfBoundsException that includes the
current stack trace. |
ArrayIndexOutOfBoundsException(int index)
Constructs a new
ArrayIndexOutOfBoundsException with the current
stack trace and a detail message that is based on the specified invalid
index. |
ArrayIndexOutOfBoundsException(int sourceLength,
int index)
Used internally for consistent high-quality error reporting.
|
ArrayIndexOutOfBoundsException(int sourceLength,
int offset,
int count)
Used internally for consistent high-quality error reporting.
|
ArrayIndexOutOfBoundsException(String detailMessage)
Constructs a new
ArrayIndexOutOfBoundsException with the current
stack trace and the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ArrayIndexOutOfBoundsException()
ArrayIndexOutOfBoundsException that includes the
current stack trace.public ArrayIndexOutOfBoundsException(int index)
ArrayIndexOutOfBoundsException with the current
stack trace and a detail message that is based on the specified invalid
index.index - the invalid index.public ArrayIndexOutOfBoundsException(String detailMessage)
ArrayIndexOutOfBoundsException with the current
stack trace and the specified detail message.detailMessage - the detail message for this exception.public ArrayIndexOutOfBoundsException(int sourceLength,
int index)
public ArrayIndexOutOfBoundsException(int sourceLength,
int offset,
int count)