org.apache.commons.math3.exception
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:
- 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
- Version:
- $Id: MathIllegalNumberException.java 1364378 2012-07-22 17:42:38Z tn $
- See Also:
- Serialized Form
serialVersionUID
private static final long serialVersionUID
- Serializable version Id.
- See Also:
- Constant Field Values
argument
private final Number argument
- Requested.
MathIllegalNumberException
protected MathIllegalNumberException(Localizable pattern,
Number wrong,
Object... arguments)
- Construct an exception.
- Parameters:
pattern
- Localizable pattern.wrong
- Wrong number.arguments
- Arguments.
getArgument
public Number getArgument()
- Returns:
- the requested value.
Copyright (c) 2003-2013 Apache Software Foundation