Class MathIllegalNumberException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- org.apache.commons.math.exception.MathIllegalArgumentException
-
- org.apache.commons.math.exception.MathIllegalNumberException
-
- All Implemented Interfaces:
java.io.Serializable
,MathThrowable
- Direct Known Subclasses:
DimensionMismatchException
,NonMonotonousSequenceException
,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
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MathIllegalNumberException(Localizable general, java.lang.Number wrong, java.lang.Object... arguments)
Construct an exception.protected
MathIllegalNumberException(Localizable specific, Localizable general, 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.math.exception.MathIllegalArgumentException
getArguments, getGeneralPattern, getLocalizedMessage, getMessage, getMessage, getSpecificPattern
-
-
-
-
Constructor Detail
-
MathIllegalNumberException
protected MathIllegalNumberException(Localizable specific, Localizable general, java.lang.Number wrong, java.lang.Object... arguments)
Construct an exception.- Parameters:
specific
- Localizable pattern.general
- Localizable pattern.wrong
- wrong numberarguments
- Arguments.
-
MathIllegalNumberException
protected MathIllegalNumberException(Localizable general, java.lang.Number wrong, java.lang.Object... arguments)
Construct an exception.- Parameters:
general
- Localizable pattern.wrong
- wrong numberarguments
- Arguments.
-
-