public class IndexOutOfBoundsException
extends RuntimeException
| java.lang.Object | ||||
| java.lang.Throwable | ||||
| java.lang.Exception | ||||
| java.lang.RuntimeException | ||||
| java.lang.IndexOutOfBoundsException | ||||
| |
抛出以指示某种索引(例如数组,字符串或向量)超出范围。
应用程序可以继承这个类来指示类似的异常。
Public constructors |
|
|---|---|
IndexOutOfBoundsException() 构造一个没有详细信息的 |
|
IndexOutOfBoundsException(String s) 用指定的详细信息构造一个 |
|
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
IndexOutOfBoundsException ()
构造一个没有详细信息的 IndexOutOfBoundsException 。
IndexOutOfBoundsException (String s)
用指定的详细信息构造一个 IndexOutOfBoundsException 。
| 参数(Parameters) | |
|---|---|
s |
String: the detail message. |