Joda System API

org.joda.util
Class IndexOutOfBoundsJodaException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IndexOutOfBoundsException
                          |
                          +--org.joda.util.IndexOutOfBoundsJodaException
All Implemented Interfaces:
java.io.Serializable

public class IndexOutOfBoundsJodaException
extends java.lang.IndexOutOfBoundsException

Exception thrown when an attempt was made to access a list or array with an index that was out of range. Details of the object are encapsulated in the exception.

Author:
Stephen Colebourne
See Also:
Serialized Form

Constructor Summary
IndexOutOfBoundsJodaException(java.lang.Object errSource, int index)
          Constructor
IndexOutOfBoundsJodaException(java.lang.Object errSource, int index, java.lang.String baseMessage)
          Constructor
 
Method Summary
 int getIndex()
          Get the index which caused the exception
 java.lang.Object getSource()
          Get the object that generated the exception
 
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
 

Constructor Detail

IndexOutOfBoundsJodaException

public IndexOutOfBoundsJodaException(java.lang.Object errSource,
                                     int index,
                                     java.lang.String baseMessage)
Constructor

Parameters:
errSource - the object that generated the exception
index - the index that could not be accessed

IndexOutOfBoundsJodaException

public IndexOutOfBoundsJodaException(java.lang.Object errSource,
                                     int index)
Constructor

Parameters:
errSource - the object that generated the exception
index - the index that could not be accessed
Method Detail

getSource

public java.lang.Object getSource()
Get the object that generated the exception

Returns:
the source

getIndex

public int getIndex()
Get the index which caused the exception

Returns:
the index which could not be accessed

Joda System API

Copyright © 2001-2003 Stephen Colebourne. All Rights Reserved.