1. /*
  2. * @(#)IndexOutOfBoundsException.java 1.11 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.lang;
  8. /**
  9. * Thrown to indicate that an index of some sort (such as to an array, to a
  10. * string, or to a vector) is out of range.
  11. * <p>
  12. * Applications can subclass this class to indicate similar exceptions.
  13. *
  14. * @author Frank Yellin
  15. * @version 1.11, 12/19/03
  16. * @since JDK1.0
  17. */
  18. public
  19. class IndexOutOfBoundsException extends RuntimeException {
  20. /**
  21. * Constructs an <code>IndexOutOfBoundsException</code> with no
  22. * detail message.
  23. */
  24. public IndexOutOfBoundsException() {
  25. super();
  26. }
  27. /**
  28. * Constructs an <code>IndexOutOfBoundsException</code> with the
  29. * specified detail message.
  30. *
  31. * @param s the detail message.
  32. */
  33. public IndexOutOfBoundsException(String s) {
  34. super(s);
  35. }
  36. }