Class MathArithmeticException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.commons.math4.exception.MathRuntimeException
org.apache.commons.math4.exception.MathArithmeticException
- All Implemented Interfaces:
java.io.Serializable,ExceptionContextProvider
public class MathArithmeticException extends MathRuntimeException
Base class for arithmetic exceptions.
It is used for all the exceptions that have the semantics of the standard
ArithmeticException, but must also provide a localized
message.- Since:
- 3.0
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MathArithmeticException()Default constructor.MathArithmeticException(Localizable pattern, java.lang.Object... args)Constructor with a specific message. -
Method Summary
Methods inherited from class org.apache.commons.math4.exception.MathRuntimeException
getContext, getLocalizedMessage, getMessage
-
Constructor Details
-
MathArithmeticException
public MathArithmeticException()Default constructor. -
MathArithmeticException
Constructor with a specific message.- Parameters:
pattern- Message pattern providing the specific context of the error.args- Arguments.
-