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