モジュール java.base
パッケージ java.lang

クラスArrayIndexOutOfBoundsException

  • すべての実装されたインタフェース:
    Serializable

    public class ArrayIndexOutOfBoundsException
    extends IndexOutOfBoundsException
    不正なインデックスを使って配列がアクセスされたことを示すためにスローされます。 つまり、インデックスが負または、配列のサイズ以上の場合です。
    導入されたバージョン:
    1.0
    関連項目:
    直列化された形式
    • コンストラクタの詳細

      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException()
        詳細メッセージなしでArrayIndexOutOfBoundsExceptionを構築します。
      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException​(String s)
        指定された詳細メッセージを持つArrayIndexOutOfBoundsExceptionクラスを構築します。
        パラメータ:
        s - 詳細メッセージ。
      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException​(int index)
        不正なインデックスを示す引数を持つ新しいArrayIndexOutOfBoundsExceptionクラスを構築します。

        インデックスは、この例外詳細メッセージに含まれています。 詳細メッセージの正確な提示形式は不特定です。

        パラメータ:
        index - 不正なインデックス