RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
创新互联鸿蒙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
网页链接:http://www.jxjierui.cn/article/dhigeih.html