java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--java.lang.IndexOutOfBoundsException | +--java.lang.StringIndexOutOfBoundsException
String
クラスの charAt
メソッド、およびその他の String
クラスのメソッドによって、インデックスが負の値であるか文字列のサイズ以上であることを示すためにスローされます。
String.charAt(int)
コンストラクタの概要 | |
StringIndexOutOfBoundsException()
詳細メッセージを指定しないで StringIndexOutOfBoundsException を構築します。 |
|
StringIndexOutOfBoundsException(int index)
不正なインデックスを示す引数を持つ新しい StringIndexOutOfBoundsException クラスを生成します。 |
|
StringIndexOutOfBoundsException(String s)
指定された詳細メッセージを持つ StringIndexOutOfBoundsException を構築します。 |
クラス java.lang.Throwable から継承したメソッド |
getMessage,
printStackTrace,
toString |
クラス java.lang.Object から継承したメソッド |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
コンストラクタの詳細 |
public StringIndexOutOfBoundsException()
StringIndexOutOfBoundsException
を構築します。public StringIndexOutOfBoundsException(String s)
StringIndexOutOfBoundsException
を構築します。s
- 詳細メッセージpublic StringIndexOutOfBoundsException(int index)
StringIndexOutOfBoundsException
クラスを生成します。index
- 不正なインデックス