java.lang

Class ArithmeticException

public class ArithmeticException extends RuntimeException

Thrown when a math error has occured, such as trying to divide an integer by zero. For example:
 int i = 0;
 int j = 2 / i;
 

UNKNOWN: updated to 1.4

Constructor Summary
ArithmeticException()
Create an exception without a message.
ArithmeticException(String s)
Create an exception with a message.

Constructor Detail

ArithmeticException

public ArithmeticException()
Create an exception without a message.

ArithmeticException

public ArithmeticException(String s)
Create an exception with a message.

Parameters: s the message