Class MathIllegalNumberException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.hipparchus.exception.MathRuntimeException
-
- org.hipparchus.exception.MathIllegalArgumentException
-
- org.hipparchus.migration.exception.MathIllegalNumberException
-
- All Implemented Interfaces:
Serializable,LocalizedException
- Direct Known Subclasses:
DimensionMismatchException,NonMonotonicSequenceException,NotANumberException,NotFiniteNumberException,NumberIsTooLargeException,NumberIsTooSmallException,OutOfRangeException,ZeroException
@Deprecated public class MathIllegalNumberException extends MathIllegalArgumentException
Deprecated.as of 1.0, this exception is replaced byMathIllegalArgumentExceptionBase class for exceptions raised by a wrong number. This class is not intended to be instantiated directly: it should serve as a base class to create all the exceptions that are raised because some precondition is violated by a number argument.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static IntegerINTEGER_ZERODeprecated.Helper to avoid boxing warnings.
-
Constructor Summary
Constructors Modifier Constructor Description protectedMathIllegalNumberException(Localizable pattern, Number wrong, Object... arguments)Deprecated.Construct an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description NumbergetArgument()Deprecated.Get argument.-
Methods inherited from class org.hipparchus.exception.MathRuntimeException
createInternalError, createInternalError, getLocalizedMessage, getMessage, getMessage, getParts, getSpecifier
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
INTEGER_ZERO
protected static final Integer INTEGER_ZERO
Deprecated.Helper to avoid boxing warnings. @since 3.3
-
-
Constructor Detail
-
MathIllegalNumberException
protected MathIllegalNumberException(Localizable pattern, Number wrong, Object... arguments)
Deprecated.Construct an exception.- Parameters:
pattern- Localizable pattern.wrong- Wrong number.arguments- Arguments.
-
-
Method Detail
-
getArgument
public Number getArgument()
Deprecated.Get argument.- Returns:
- argument
-
-