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

public Class OutOfRangeException

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

Exception to be thrown when some argument is out of range.
Since
2.2

Field Summary

Modifier and TypeField and Description
private final Number
hi

Higher bound.

private final Number
lo

Lower bound.

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

Constructor Summary

AccessConstructor and Description
public
OutOfRangeException(Number
Requested value.
wrong
,
Number
Lower bound.
lo
,
Number
Higher bound.
hi
)

Construct an exception from the mismatched dimensions.

public
OutOfRangeException(Localizable
Context information.
specific
,
Number
Requested value.
wrong
,
Number
Lower bound.
lo
,
Number
Higher bound.
hi
)

Construct an exception from the mismatched dimensions with a specific context information.

Method Summary

Modifier and TypeMethod and Description
public Number

Returns:

the higher bound.
getHi
()

public Number

Returns:

the lower bound.
getLo
()

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

Field Detail

hiback to summary
private final Number hi

Higher bound.

loback to summary
private final Number lo

Lower bound.

serialVersionUIDback to summary
private static final long serialVersionUID

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

Serializable version Id.

Constructor Detail

OutOfRangeExceptionback to summary
public OutOfRangeException(Number wrong, Number lo, Number hi)

Construct an exception from the mismatched dimensions.

Parameters
wrong:Number

Requested value.

lo:Number

Lower bound.

hi:Number

Higher bound.

OutOfRangeExceptionback to summary
public OutOfRangeException(Localizable specific, Number wrong, Number lo, Number hi)

Construct an exception from the mismatched dimensions with a specific context information.

Parameters
specific:Localizable

Context information.

wrong:Number

Requested value.

lo:Number

Lower bound.

hi:Number

Higher bound.

Method Detail

getHiback to summary
public Number getHi()
Returns:Number

the higher bound.

getLoback to summary
public Number getLo()
Returns:Number

the lower bound.