全パッケージ  クラス階層  このパッケージ  前項目  次項目  インデックス

クラス 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 のメソッドによって、添字が負の値であるか文字列のサイズ以上であることを示すためにスローされます。

参照:
charAt

Constructor Index

 o StringIndexOutOfBoundsException()
詳細メッセージを持たない StringIndexOutOfBoundsException を構築する。
 o StringIndexOutOfBoundsException(int)
不正な添字を示す引数を持つ新しいクラス StringIndexOutOfBoundsException を構築する。
 o StringIndexOutOfBoundsException(String)
指定した詳細メッセージを持つ StringIndexOutOfBoundsException を構築する。

Constructors

 o StringIndexOutOfBoundsException
  public StringIndexOutOfBoundsException()
詳細メッセージを持たない StringIndexOutOfBoundsException を構築します。

 o StringIndexOutOfBoundsException
  public StringIndexOutOfBoundsException(String s)
指定した詳細メッセージを持つ StringIndexOutOfBoundsException を構築します。

パラメータ:
s - 詳細メッセージ
 o StringIndexOutOfBoundsException
  public StringIndexOutOfBoundsException(int index)
不正な添字を示す引数を持つ新しいクラス StringIndexOutOfBoundsException を構築します。

パラメータ:
index - 不正な添字

全パッケージ  クラス階層  このパッケージ  前項目  次項目  インデックス