jef.dna.exceptions
Class IndexOutOfRangeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jef.dna.exceptions.IndexOutOfRangeException
- All Implemented Interfaces:
- java.io.Serializable
public class IndexOutOfRangeException
- extends java.lang.Exception
This exception is thrown when someone tries to access a list similar data structure, specifying
an invalid index. The throwing component is required to point out the valid Range.
- Author:
- Francesco Russo
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IndexOutOfRangeException
public IndexOutOfRangeException(Range validRange)
- Creates a new instance of
IndexOutOfRangeException
without detail message.
- Parameters:
validRange
- The violated Range
getExpectedRange
public Range getExpectedRange()
- Returns the violated
Range
.
- Returns:
- The violated
Range