java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.ArithmeticException
public class ArithmeticException
当出现异常的运算条件时,抛出此异常。例如,一个整数“除以零”时,抛出此类的一个实例。
| 构造方法摘要 | |
|---|---|
ArithmeticException() 构造不带详细消息的 ArithmeticException。 |
|
ArithmeticException(String s) 构造具有指定详细消息的 ArithmeticException。 |
|
| 方法摘要 |
|---|
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public ArithmeticException()
ArithmeticException。
public ArithmeticException(String s)
ArithmeticException。
s - 详细消息。