java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.IndexOutOfBoundsException | +--java.lang.ArrayIndexOutOfBoundsException
不正なインデックスを使って配列がアクセスされたことを示すためにスローされます。つまり、インデックスが負または、配列のサイズ以上の場合です。
コンストラクタの概要 | |
ArrayIndexOutOfBoundsException()
詳細メッセージを指定しないで ArrayIndexOutOfBoundsException を構築します。 |
|
ArrayIndexOutOfBoundsException(int index)
不正なインデックスを示す引数で、 ArrayIndexOutOfBoundsException クラスを新しく構築します。 |
|
ArrayIndexOutOfBoundsException(String s)
指定された詳細メッセージを持つ ArrayIndexOutOfBoundsException クラスを構築します。 |
クラス java.lang.Throwable から継承したメソッド |
getMessage,
printStackTrace,
toString |
クラス java.lang.Object から継承したメソッド |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
コンストラクタの詳細 |
public ArrayIndexOutOfBoundsException()
ArrayIndexOutOfBoundsException
を構築します。public ArrayIndexOutOfBoundsException(int index)
ArrayIndexOutOfBoundsException
クラスを新しく構築します。index
- 不正なインデックスpublic ArrayIndexOutOfBoundsException(String s)
ArrayIndexOutOfBoundsException
クラスを構築します。s
- 詳細メッセージ