Class OutOfRangeException
- 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
-
- org.apache.commons.math3.exception.OutOfRangeException
-
- All Implemented Interfaces:
java.io.Serializable
,ExceptionContextProvider
public class OutOfRangeException extends MathIllegalNumberException
Exception to be thrown when some argument is out of range.- Since:
- 2.2
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Number
hi
Higher bound.private java.lang.Number
lo
Lower bound.private static long
serialVersionUID
Serializable version Id.-
Fields inherited from class org.apache.commons.math3.exception.MathIllegalNumberException
INTEGER_ZERO
-
-
Constructor Summary
Constructors Constructor Description OutOfRangeException(java.lang.Number wrong, java.lang.Number lo, java.lang.Number hi)
Construct an exception from the mismatched dimensions.OutOfRangeException(Localizable specific, java.lang.Number wrong, java.lang.Number lo, java.lang.Number hi)
Construct an exception from the mismatched dimensions with a specific context information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Number
getHi()
java.lang.Number
getLo()
-
Methods inherited from class org.apache.commons.math3.exception.MathIllegalNumberException
getArgument
-
Methods inherited from class org.apache.commons.math3.exception.MathIllegalArgumentException
getContext, getLocalizedMessage, getMessage
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serializable version Id.- See Also:
- Constant Field Values
-
lo
private final java.lang.Number lo
Lower bound.
-
hi
private final java.lang.Number hi
Higher bound.
-
-
Constructor Detail
-
OutOfRangeException
public OutOfRangeException(java.lang.Number wrong, java.lang.Number lo, java.lang.Number hi)
Construct an exception from the mismatched dimensions.- Parameters:
wrong
- Requested value.lo
- Lower bound.hi
- Higher bound.
-
OutOfRangeException
public OutOfRangeException(Localizable specific, java.lang.Number wrong, java.lang.Number lo, java.lang.Number hi)
Construct an exception from the mismatched dimensions with a specific context information.- Parameters:
specific
- Context information.wrong
- Requested value.lo
- Lower bound.hi
- Higher bound.
-
-