Most visited

Recently visited

Added in API level 1

IndexOutOfBoundsException

public class IndexOutOfBoundsException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.lang.IndexOutOfBoundsException
Known Direct Subclasses


抛出以指示某种索引(例如数组,字符串或向量)超出范围。

应用程序可以继承这个类来指示类似的异常。

Summary

Public constructors

IndexOutOfBoundsException()

构造一个没有详细信息的 IndexOutOfBoundsException 。

IndexOutOfBoundsException(String s)

用指定的详细信息构造一个 IndexOutOfBoundsException 。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IndexOutOfBoundsException

Added in API level 1
IndexOutOfBoundsException ()

构造一个没有详细信息的 IndexOutOfBoundsException 。

IndexOutOfBoundsException

Added in API level 1
IndexOutOfBoundsException (String s)

用指定的详细信息构造一个 IndexOutOfBoundsException 。

Parameters
s String: the detail message.

Hooray!