java.lang
クラス StringIndexOutOfBoundsException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IndexOutOfBoundsException
                          |
                          +--java.lang.StringIndexOutOfBoundsException

public class StringIndexOutOfBoundsException
extends IndexOutOfBoundsException

String クラスの charAt メソッド、およびその他の String クラスのメソッドによって、インデックスが負の値であるか文字列のサイズ以上であることを示すためにスローされます。

導入されたバージョン:
JDK1.0
関連項目:
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
 

コンストラクタの詳細

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException()
詳細メッセージを指定しないで StringIndexOutOfBoundsException を構築します。
導入されたバージョン:
JDK1.0.

StringIndexOutOfBoundsException

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

StringIndexOutOfBoundsException

public StringIndexOutOfBoundsException(int index)
不正なインデックスを示す引数を持つ新しい StringIndexOutOfBoundsException クラスを生成します。
パラメータ:
index - 不正なインデックス