org.apache.commons.math.exception
Class OutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.commons.math.exception.MathIllegalArgumentException
org.apache.commons.math.exception.MathIllegalNumberException
org.apache.commons.math.exception.OutOfRangeException
- All Implemented Interfaces:
- java.io.Serializable, MathThrowable
public class OutOfRangeException
- extends MathIllegalNumberException
Exception to be thrown when some argument is out of range.
- Since:
- 2.2
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
Field Summary |
private java.lang.Number |
hi
Higher bound. |
private java.lang.Number |
lo
Lower bound. |
private static long |
serialVersionUID
Serializable version Id. |
Constructor Summary |
OutOfRangeException(java.lang.Number wrong,
java.lang.Number lo,
java.lang.Number hi)
Construct an exception from the mismatched dimensions. |
Method Summary |
java.lang.Number |
getHi()
|
java.lang.Number |
getLo()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.
getLo
public java.lang.Number getLo()
- Returns:
- the lower bound.
getHi
public java.lang.Number getHi()
- Returns:
- the higher bound.
Copyright (c) 2003-2011 Apache Software Foundation