Class MathIllegalNumberException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.apache.commons.math3.exception.MathIllegalArgumentException
-
- org.apache.commons.math3.exception.MathIllegalNumberException
-
- All Implemented Interfaces:
java.io.Serializable
,ExceptionContextProvider
- Direct Known Subclasses:
DimensionMismatchException
,NonMonotonicSequenceException
,NotANumberException
,NotFiniteNumberException
,NumberIsTooLargeException
,NumberIsTooSmallException
,OutOfRangeException
,ZeroException
public class MathIllegalNumberException extends MathIllegalArgumentException
Base 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.- Since:
- 2.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Number
argument
Requested.protected static java.lang.Integer
INTEGER_ZERO
Helper to avoid boxing warnings.private static long
serialVersionUID
Serializable version Id.
-
Constructor Summary
Constructors Modifier Constructor Description protected
MathIllegalNumberException(Localizable pattern, java.lang.Number wrong, java.lang.Object... arguments)
Construct an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
getArgument()
-
Methods inherited from class org.apache.commons.math3.exception.MathIllegalArgumentException
getContext, getLocalizedMessage, getMessage
-
-
-
-
Field Detail
-
INTEGER_ZERO
protected static final java.lang.Integer INTEGER_ZERO
Helper to avoid boxing warnings. @since 3.3
-
serialVersionUID
private static final long serialVersionUID
Serializable version Id.- See Also:
- Constant Field Values
-
argument
private final java.lang.Number argument
Requested.
-
-
Constructor Detail
-
MathIllegalNumberException
protected MathIllegalNumberException(Localizable pattern, java.lang.Number wrong, java.lang.Object... arguments)
Construct an exception.- Parameters:
pattern
- Localizable pattern.wrong
- Wrong number.arguments
- Arguments.
-
-