Package java.lang
Class ArithmeticException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.ArithmeticException
-
- All Implemented Interfaces:
Serializable
,Modified
public class ArithmeticException extends RuntimeException
Thrown when the an invalid arithmetic operation is attempted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArithmeticException()
Constructs a newArithmeticException
that includes the current stack trace.ArithmeticException(String detailMessage)
Constructs a newArithmeticException
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
ArithmeticException
public ArithmeticException()
Constructs a newArithmeticException
that includes the current stack trace.
-
ArithmeticException
public ArithmeticException(String detailMessage)
Constructs a newArithmeticException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-