Class MathArithmeticException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.commons.math4.legacy.exception.MathRuntimeException
-
- org.apache.commons.math4.legacy.exception.MathArithmeticException
-
- All Implemented Interfaces:
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 standardArithmeticException
, 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, Object... args)
Constructor with a specific message.
-
Method Summary
-
Methods inherited from class org.apache.commons.math4.legacy.exception.MathRuntimeException
getContext, getLocalizedMessage, getMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
MathArithmeticException
public MathArithmeticException()
Default constructor.
-
MathArithmeticException
public MathArithmeticException(Localizable pattern, Object... args)
Constructor with a specific message.- Parameters:
pattern
- Message pattern providing the specific context of the error.args
- Arguments.
-
-