codecamp

鸿蒙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 IllegalThreadStateException
鸿蒙OS InstantiationException
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

鸿蒙OS 开发

鸿蒙OS 术语

鸿蒙OS Java API参考

鸿蒙OS ohos.aafwk.ability

鸿蒙OS ohos.aafwk.abilityjet.activedata

鸿蒙OS ohos.aafwk.content

鸿蒙OS java.lang

鸿蒙OS java.Util

鸿蒙OS java.Util class

鸿蒙OS ohos.data.dataability

鸿蒙OS ohos.data.dataability class

鸿蒙OS ohos.agp.components

鸿蒙OS ohos.agp.components interface

鸿蒙OS ohos.agp.components class

鸿蒙OS ohos.global.configuration

鸿蒙OS java.io

鸿蒙OS ohos.data.resultset

鸿蒙OS ohos.data.resultset interface

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }