public class ArithmeticException
extends RuntimeException
| java.lang.Object | ||||
| java.lang.Throwable | ||||
| java.lang.Exception | ||||
| java.lang.RuntimeException | ||||
| java.lang.ArithmeticException | ||||
发生特殊算术条件时抛出。 例如,一个整数“除以零”将抛出该类的一个实例。 ArithmeticException对象可能由虚拟机构造,就像suppression were disabled and/or the stack trace was not writable一样 。
Public constructors |
|
|---|---|
ArithmeticException() 构造一个没有详细消息的 |
|
ArithmeticException(String s) 用指定的详细信息构造一个 |
|
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
java.lang.Object
|
|
ArithmeticException (String s)
用指定的详细信息构造一个 ArithmeticException 。
| 参数(Parameters) | |
|---|---|
s |
String: the detail message. |