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, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。