阅读(1857) (5)

鸿蒙OS NegativeArraySizeException

2022-04-28 16:06:44 更新

NegativeArraySizeException

java.lang.Object

|---java.lang.Throwable

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

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

|---|---|---|---java.lang.NegativeArraySizeException

public class NegativeArraySizeException
extends RuntimeException

如果应用程序尝试创建具有负大小的数组,则抛出此异常。

构造函数摘要

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

方法总结

从类 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

构造函数详细信息

NegativeArraySizeException

public NegativeArraySizeException()

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

NegativeArraySizeException

public NegativeArraySizeException(String s)

构造带有指定详细消息的 NegativeArraySizeException。

参数:

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