Package java.lang

Class ArrayIndexOutOfBoundsException

    • Constructor Detail

      • ArrayIndexOutOfBoundsException

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

        public ArrayIndexOutOfBoundsException​(int index)
        Constructs a new ArrayIndexOutOfBoundsException with the current stack trace and a detail message that is based on the specified invalid index.
        Parameters:
        index - the invalid index.
      • ArrayIndexOutOfBoundsException

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

        public ArrayIndexOutOfBoundsException​(int sourceLength,
                                              int index)
        Used internally for consistent high-quality error reporting.
        Parameters:
        sourceLength - Length of array.
        index - Array index.
      • ArrayIndexOutOfBoundsException

        public ArrayIndexOutOfBoundsException​(int sourceLength,
                                              int offset,
                                              int count)
        Used internally for consistent high-quality error reporting.
        Parameters:
        sourceLength - Length of array.
        offset - Array offset.
        count - Array count.