Source Home >> Java Source 1.6.0 >> java.lang.IndexOutOfBoundsException V 0.09
  • 01/*
  • 02 * @(#)IndexOutOfBoundsException.java 1.12 05/11/17
  • 03 *
  • 04 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
  • 05 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  • 06 */
  • 07
  • 08package java.lang;
  • 09
  • 10/**
  • 11 * Thrown to indicate that an index of some sort (such as to an array, to a
  • 12 * string, or to a vector) is out of range.
  • 13 * <p>
  • 14 * Applications can subclass this class to indicate similar exceptions.
  • 15 *
  • 16 * @author Frank Yellin
  • 17 * @version 1.12, 11/17/05
  • 18 * @since JDK1.0
  • 19 */
  • 20public
  • 21class IndexOutOfBoundsException extends RuntimeException {
  • 22 /**
  • 23 * Constructs an <code>IndexOutOfBoundsException</code> with no
  • 24 * detail message.
  • 25 */
  • 26 public IndexOutOfBoundsException() {
  • 27 super();
  • 28 }
  • 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}

文件:IndexOutOfBoundsException.java
包名:java.lang
类名:IndexOutOfBoundsException
继承:RuntimeException
接口: