Module java.base 模块java.base
Package java.lang 包. lang
Class ArithmeticException
类ArithmeticException
- java.lang.Object java . lang . object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.ArithmeticException
-
- All Implemented Interfaces:
所有实现接口: Serializable
public class ArithmeticException extends RuntimeException
Thrown when an exceptional arithmetic condition has occurred. For example, an integer "divide by zero" throws an instance of this class.ArithmeticException
objects may be constructed by the virtual machine as if suppression were disabled and/or the stack trace was not writable.
发生异常算术条件时抛出。例如,整数“除零”抛出该类的一个实例。ArithmeticException
对象可以由虚拟机构造,就像禁用了抑制和/或堆栈跟踪不可写一样。- Since: 自:
- 1.0
- See Also: 参见:
- Serialized Form 序列化形式
- All Implemented Interfaces:
-
-
Constructor Summary 构造函数的总结
Constructors 构造函数 Constructor Description ArithmeticException()
Constructs anArithmeticException
with no detail message.
构造一个没有详细信息的ArithmeticException
。ArithmeticException(String s)
Constructs anArithmeticException
with the specified detail message.
用指定的详细信息消息构造一个ArithmeticException
。
-
Method Summary 方法总结
-
Methods inherited from class java.lang.Object
方法继承自类java.lang。对象clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
方法继承自类java.lang。ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail 构造函数的细节
-
ArithmeticException
public ArithmeticException()
Constructs anArithmeticException
with no detail message.
构造一个没有详细信息的ArithmeticException
。
-
ArithmeticException
public ArithmeticException(String s)
Constructs anArithmeticException
with the specified detail message.
用指定的详细信息消息构造一个ArithmeticException
。- Parameters: 参数:
s
- the detail message.
s
-详细信息。
-
-