Top Description Fields Constructors
java.lang

public Class ArithmeticException

extends RuntimeException
Class Inheritance

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.
Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ArithmeticException()

Constructs an ArithmeticException with no detail message.

public
ArithmeticException(String
the detail message.
s
)

Constructs an ArithmeticException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ArithmeticExceptionback to summary
public ArithmeticException()

Constructs an ArithmeticException with no detail message.

ArithmeticExceptionback to summary
public ArithmeticException(String s)

Constructs an ArithmeticException with the specified detail message.

Parameters
s:String

the detail message.