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

public Class NumberIsTooLargeException

extends MathIllegalNumberException
Class Inheritance
Imports
org.apache.commons.math3.exception.util.Localizable, .LocalizedFormats

Exception to be thrown when a number is too large.
Since
2.2

Field Summary

Modifier and TypeField and Description
private final boolean
boundIsAllowed

Whether the maximum is included in the allowed range.

private final Number
max

Higher bound.

private static final long
Inherited from org.apache.commons.math3.exception.MathIllegalNumberException:
INTEGER_ZERO

Constructor Summary

AccessConstructor and Description
public
NumberIsTooLargeException(Number
Value that is larger than the maximum.
wrong
,
Number
Maximum.
max
,
boolean
if true the maximum is included in the allowed range.
boundIsAllowed
)

Construct the exception.

public
NumberIsTooLargeException(Localizable
Specific context pattern.
specific
,
Number
Value that is larger than the maximum.
wrong
,
Number
Maximum.
max
,
boolean
if true the maximum is included in the allowed range.
boundIsAllowed
)

Construct the exception with a specific context.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the maximum is included in the allowed range.
getBoundIsAllowed
()

public Number

Returns:

the maximum.
getMax
()

Inherited from org.apache.commons.math3.exception.MathIllegalNumberException:
getArgument

Field Detail

boundIsAllowedback to summary
private final boolean boundIsAllowed

Whether the maximum is included in the allowed range.

maxback to summary
private final Number max

Higher bound.

serialVersionUIDback to summary
private static final long serialVersionUID

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

Serializable version Id.

Constructor Detail

NumberIsTooLargeExceptionback to summary
public NumberIsTooLargeException(Number wrong, Number max, boolean boundIsAllowed)

Construct the exception.

Parameters
wrong:Number

Value that is larger than the maximum.

max:Number

Maximum.

boundIsAllowed:boolean

if true the maximum is included in the allowed range.

NumberIsTooLargeExceptionback to summary
public NumberIsTooLargeException(Localizable specific, Number wrong, Number max, boolean boundIsAllowed)

Construct the exception with a specific context.

Parameters
specific:Localizable

Specific context pattern.

wrong:Number

Value that is larger than the maximum.

max:Number

Maximum.

boundIsAllowed:boolean

if true the maximum is included in the allowed range.

Method Detail

getBoundIsAllowedback to summary
public boolean getBoundIsAllowed()
Returns:boolean

true if the maximum is included in the allowed range.

getMaxback to summary
public Number getMax()
Returns:Number

the maximum.