Source Home >> Java Source 1.6.0 >> java.util.NoSuchElementException V 0.09
  • 01/*
  • 02 * @(#)NoSuchElementException.java 1.22 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.util;
  • 09
  • 10/**
  • 11 * Thrown by the <code>nextElement</code> method of an
  • 12 * <code>Enumeration</code> to indicate that there are no more
  • 13 * elements in the enumeration.
  • 14 *
  • 15 * @author unascribed
  • 16 * @version 1.22, 11/17/05
  • 17 * @see java.util.Enumeration
  • 18 * @see java.util.Enumeration#nextElement()
  • 19 * @since JDK1.0
  • 20 */
  • 21public
  • 22class NoSuchElementException extends RuntimeException {
  • 23 /**
  • 24 * Constructs a <code>NoSuchElementException</code> with <tt>null</tt>
  • 25 * as its error message string.
  • 26 */
  • 27 public NoSuchElementException() {
  • 28 super();
  • 29 }
  • 30
  • 31 /**
  • 32 * Constructs a <code>NoSuchElementException</code>, saving a reference
  • 33 * to the error message string <tt>s</tt> for later retrieval by the
  • 34 * <tt>getMessage</tt> method.
  • 35 *
  • 36 * @param s the detail message.
  • 37 */
  • 38 public NoSuchElementException(String s) {
  • 39 super(s);
  • 40 }
  • 41}

文件:NoSuchElementException.java
包名:java.util
类名:NoSuchElementException
继承:RuntimeException
接口: