public class StringIndexOutOfBoundsException extends IndexOutOfBoundsException
String メソッドによりスローされ、インデックスが負または文字列のサイズより大きいことを示します。charAt などのいくつかのメソッドでは、インデックスが文字列のサイズと等しい場合にも、この例外がスローされます。String.charAt(int)、直列化された形式| コンストラクタと説明 |
|---|
StringIndexOutOfBoundsException()
詳細メッセージなしで
StringIndexOutOfBoundsException を構築します。 |
StringIndexOutOfBoundsException(int index)
不正なインデックスを示す引数を持つ新しい
StringIndexOutOfBoundsException クラスを構築します。 |
StringIndexOutOfBoundsException(String s)
指定された詳細メッセージを持つ
StringIndexOutOfBoundsException を構築します。 |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic StringIndexOutOfBoundsException()
StringIndexOutOfBoundsException を構築します。public StringIndexOutOfBoundsException(String s)
StringIndexOutOfBoundsException を構築します。s - 詳細メッセージ。public StringIndexOutOfBoundsException(int index)
StringIndexOutOfBoundsException クラスを構築します。index - 不正なインデックス。 バグまたは機能を送信
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.