Top Description Fields Constructors Methods
org.apache.commons.math3.exception

public Class MathIllegalNumberException

extends MathIllegalArgumentException
Class Inheritance
Known Direct Subclasses
org.apache.commons.math3.exception.NonMonotonicSequenceException, org.apache.commons.math3.exception.NotANumberException, org.apache.commons.math3.exception.NotFiniteNumberException, org.apache.commons.math3.exception.NumberIsTooLargeException, org.apache.commons.math3.exception.NumberIsTooSmallException, org.apache.commons.math3.exception.OutOfRangeException, org.apache.commons.math3.exception.ZeroException, org.apache.commons.math3.exception.DimensionMismatchException
Imports
org.apache.commons.math3.exception.util.Localizable

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

Field Summary

Modifier and TypeField and Description
private final Number
argument

Requested.

protected static final Integer
INTEGER_ZERO

Helper to avoid boxing warnings.

private static final long

Constructor Summary

AccessConstructor and Description
protected
MathIllegalNumberException(Localizable
Localizable pattern.
pattern
,
Number
Wrong number.
wrong
,
Object...
Arguments.
arguments
)

Construct an exception.

Method Summary

Modifier and TypeMethod and Description
public Number

Returns:

the requested value.
getArgument
()

Inherited from org.apache.commons.math3.exception.MathIllegalArgumentException:
getContextgetLocalizedMessagegetMessage

Field Detail

argumentback to summary
private final Number argument

Requested.

INTEGER_ZEROback to summary
protected static final Integer INTEGER_ZERO

Helper to avoid boxing warnings. @since 3.3

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.commons.math3.exception.MathIllegalArgumentException.serialVersionUID.

Serializable version Id.

Constructor Detail

MathIllegalNumberExceptionback to summary
protected MathIllegalNumberException(Localizable pattern, Number wrong, Object... arguments)

Construct an exception.

Parameters
pattern:Localizable

Localizable pattern.

wrong:Number

Wrong number.

arguments:Object[]

Arguments.

Method Detail

getArgumentback to summary
public Number getArgument()
Returns:Number

the requested value.