java.util
クラス NoSuchElementException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.util.NoSuchElementException

public class NoSuchElementException
extends RuntimeException

この列挙にそれ以上の要素がないと、EnumerationnextElement メソッドによってスローされます。

導入されたバージョン:
JDK1.0
関連項目:
Enumeration, Enumeration.nextElement()

コンストラクタの概要
NoSuchElementException()
          エラーメッセージ文字列に null を使用して NoSuchElementException を構築します。
NoSuchElementException(String s)
          NoSuchElementException を構築します。
 
クラス java.lang.Throwable から継承したメソッド
getMessage, printStackTrace, toString
 
クラス java.lang.Object から継承したメソッド
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

NoSuchElementException

public NoSuchElementException()
エラーメッセージ文字列に null を使用して NoSuchElementException を構築します。

NoSuchElementException

public NoSuchElementException(String s)
NoSuchElementException を構築します。この際、エラーメッセージ文字列 s に参照を保存することにより、あとで getMessage メソッドで取得できるようにします。
パラメータ:
s - 詳細メッセージ