创新互联鸿蒙OS教程:鸿蒙OS IndexOutOfBoundsException

疆括仕网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

创新互联鸿蒙OS教程:鸿蒙OS IndexOutOfBoundsException

IndexOutOfBoundsException

java.lang.Object

|---java.lang.Throwable

|---|---java.lang.Exception

|---|---|---java.lang.RuntimeException

|---|---|---|---java.lang.IndexOutOfBoundsException

public class IndexOutOfBoundsException
extends RuntimeException

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

应用程序可以对此类进行子类化以指示类似的异常。

构造函数摘要

构造函数描述
IndexOutOfBoundsException()构造一个没有详细消息的 IndexOutOfBoundsException。
IndexOutOfBoundsException(String s)使用指定的详细消息构造 IndexOutOfBoundsException。

方法总结

从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从类 java.lang.Throwable 继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

构造函数详细信息

IndexOutOfBoundsException

public IndexOutOfBoundsException()

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

IndexOutOfBoundsException

public IndexOutOfBoundsException(String s)

使用指定的详细消息构造 IndexOutOfBoundsException。

参数:

参数名称参数描述
s详细信息。

网站题目:创新互联鸿蒙OS教程:鸿蒙OS IndexOutOfBoundsException
网页路径:https://tyhkzb.com/article/djceigh.html
在线咨询
服务热线
服务热线:028-86922220
TOP