新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSArithmeticException
ArithmeticException

java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Exception
|---|---|---java.lang.RuntimeException
|---|---|---|---java.lang.ArithmeticException
public class ArithmeticException
extends RuntimeException發(fā)生異常算術(shù)條件時拋出。 例如,一個整數(shù)“除以零”會拋出這個類的一個實例。 虛擬機可以像 Throwable#Throwable(String, Throwable, boolean, boolean) 一樣構(gòu)造 ArithmeticException 對象。
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| ArithmeticException() | 構(gòu)造一個沒有詳細消息的 ArithmeticException。 |
| ArithmeticException(String s) | 構(gòu)造帶有指定詳細消息的 ArithmeticException。 |
方法總結(jié)
| 從類 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 |
構(gòu)造函數(shù)詳細信息
ArithmeticException
public ArithmeticException()
構(gòu)造一個沒有詳細消息的 ArithmeticException。
ArithmeticException
public ArithmeticException(String s)
構(gòu)造帶有指定詳細消息的 ArithmeticException。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| s | 詳細信息。 |
網(wǎng)頁名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSArithmeticException
標題URL:http://m.fisionsoft.com.cn/article/dhigeih.html


咨詢
建站咨詢
