Package java.lang
Class ArithmeticException
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 the an invalid arithmetic operation is attempted.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ArithmeticException()Constructs a newArithmeticExceptionthat includes the current stack trace.ArithmeticException(String detailMessage)Constructs a newArithmeticExceptionwith the current stack trace and the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArithmeticException
public ArithmeticException()Constructs a newArithmeticExceptionthat includes the current stack trace. -
ArithmeticException
Constructs a newArithmeticExceptionwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this exception.
-