java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IndexOutOfBoundsException
public class IndexOutOfBoundsException
指示某排序索引(例如对数组、字符串或向量的排序)超出范围时抛出。
应用程序可以为这个类创建子类,以指示类似的异常。
| 构造方法摘要 | |
|---|---|
IndexOutOfBoundsException() 构造不带详细消息的 IndexOutOfBoundsException。 |
|
IndexOutOfBoundsException(String s) 构造带指定详细消息的 IndexOutOfBoundsException。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public IndexOutOfBoundsException()
IndexOutOfBoundsException。
public IndexOutOfBoundsException(String s)
IndexOutOfBoundsException。
s - 详细消息。