Intel

Developer Zone

StringIndexOutOfBoundsException

java.lang

Class StringIndexOutOfBoundsException



  • public class StringIndexOutOfBoundsException
    extends IndexOutOfBoundsException
    Thrown when the a string is indexed with a value less than zero, or greater than or equal to the size of the array.
    • Constructor Detail

      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException()
        Constructs a new StringIndexOutOfBoundsException that includes the current stack trace.
      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException(int index)
        Constructs a new StringIndexOutOfBoundsException with the current stack trace and a detail message that is based on the specified invalid index.
        Parameters:
        index - the index which is out of bounds.
      • StringIndexOutOfBoundsException

        public StringIndexOutOfBoundsException(String detailMessage)
        Constructs a new StringIndexOutOfBoundsException with the current stack trace and the specified detail message.
        Parameters:
        detailMessage - the detail message for this exception.