Module  java.base
软件包  java.lang

Class StringIndexOutOfBoundsException

    • 构造方法详细信息

      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException​()
        构造一个 StringIndexOutOfBoundsException ,没有详细信息。
      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException​(String s)
        构造具有指定详细消息的 StringIndexOutOfBoundsException
        参数
        s - 详细信息。
      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException​(int index)
        构造一个新的StringIndexOutOfBoundsException类,其中包含非法索引的参数。

        该索引包含在此异常的详细消息中。 详细信息的确切显示格式未指定。

        参数
        index - 非法索引。