028-86922220
建站资讯

网站建设资讯

为你提供网站建设行业资讯、网站优化知识、主机域名邮箱、网站开发常见问题等。

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

ArithmeticException

java.lang.Object

|---java.lang.Throwable

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

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

|---|---|---|---java.lang.ArithmeticException

public class ArithmeticException
extends RuntimeException

发生异常算术条件时抛出。 例如,一个整数“除以零”会抛出这个类的一个实例。 虚拟机可以像 Throwable#Throwable(String, Throwable, boolean, boolean) 一样构造 ArithmeticException 对象。

构造函数摘要

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

方法总结

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

构造函数详细信息

ArithmeticException

public ArithmeticException()

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

ArithmeticException

public ArithmeticException(String s)

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

参数:

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

当前标题:创新互联鸿蒙OS教程:鸿蒙OSArithmeticException
URL网址:http://www.whjierui.cn/article/dhigeih.html

其他资讯