JavaTM 2 Platform
Standard Ed. 6

java.lang
类 IndexOutOfBoundsException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 java.lang.IndexOutOfBoundsException
所有已实现的接口:
Serializable
直接已知子类:
ArrayIndexOutOfBoundsException, StringIndexOutOfBoundsException

public class IndexOutOfBoundsException
extends RuntimeException

指示某排序索引(例如对数组、字符串或向量的排序)超出范围时抛出。

应用程序可以为这个类创建子类,以指示类似的异常。

从以下版本开始:
JDK1.0
另请参见:
序列化表格

构造方法摘要
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
 

构造方法详细信息

IndexOutOfBoundsException

public IndexOutOfBoundsException()
构造不带详细消息的 IndexOutOfBoundsException。


IndexOutOfBoundsException

public IndexOutOfBoundsException(String s)
构造带指定详细消息的 IndexOutOfBoundsException。

参数:
s - 详细消息。

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。